import*as e from"../common/common.js";import*as t from"../host/host.js";class r{static patch(n){!function n(o,a){o.url&&r.isPlatformPath(o.url,t.Platform.isWin())&&(o.url=e.ParsedURL.ParsedURL.rawPathToUrlString(o.url));for(const e of Object.entries(o)){const t=e[0],r=e[1],o=a+"."+t;".result.result.value"!==o&&null!==r&&"object"==typeof r&&n(r,o)}}(n,"")}static isPlatformPath(e,t){if(t){return/^([a-z]:[\/\\]|\\\\)/i.test(e)}return!!e.length&&"/"===e[0]}}var n=Object.freeze({__proto__:null,NodeURL:r});const o=e=>{const[t,r]=e.split(".");return[t,r]},a=(e,t)=>`${e}.${t}`;class i{agentPrototypes=new Map;#e=!1;#t=new Map;getOrCreateEventParameterNamesForDomain(e){let t=this.#t.get(e);return t||(t=new Map,this.#t.set(e,t)),t}getOrCreateEventParameterNamesForDomainForTesting(e){return this.getOrCreateEventParameterNamesForDomain(e)}getEventParameterNames(){return this.#t}static reportProtocolError(e,t){console.error(e+": "+JSON.stringify(t))}static reportProtocolWarning(e,t){console.warn(e+": "+JSON.stringify(t))}isInitialized(){return this.#e}agentPrototype(e){let t=this.agentPrototypes.get(e);return t||(t=new p(e),this.agentPrototypes.set(e,t)),t}registerCommand(e,t,r){const[n,a]=o(e);this.agentPrototype(n).registerCommand(a,t,r),this.#e=!0}registerEnum(e,t){const[r,n]=o(e);globalThis.Protocol[r]||(globalThis.Protocol[r]={}),globalThis.Protocol[r][n]=t,this.#e=!0}registerEvent(e,t){const r=e.split(".")[0];this.getOrCreateEventParameterNamesForDomain(r).set(e,t),this.#e=!0}}let s;const l={dumpProtocol:null,deprecatedRunAfterPendingDispatches:null,sendRawMessage:null,suppressRequestErrors:!1,onMessageSent:null,onMessageReceived:null},m=new Set(["CSS.takeComputedStyleUpdates"]);class d{#r;#n;#o;#a;#i;#s;constructor(e){this.#r=e,this.#n=1,this.#o=0,this.#a=new Set,this.#i=new Map,this.#s=[],l.deprecatedRunAfterPendingDispatches=this.deprecatedRunAfterPendingDispatches.bind(this),l.sendRawMessage=this.sendRawMessageForTesting.bind(this),this.#r.setOnMessage(this.onMessage.bind(this)),this.#r.setOnDisconnect((e=>{const t=this.#i.get("");t&&t.target.dispose(e)}))}registerSession(e,t,r){if(r)for(const e of this.#i.values())if(e.proxyConnection){console.error("Multiple simultaneous proxy connections are currently unsupported");break}this.#i.set(t,{target:e,callbacks:new Map,proxyConnection:r})}unregisterSession(e){const t=this.#i.get(e);if(t){for(const e of t.callbacks.values())d.dispatchUnregisterSessionError(e);this.#i.delete(e)}}getTargetBySessionId(e){const t=this.#i.get(e||"");return t?t.target:null}nextMessageId(){return this.#n++}connection(){return this.#r}sendMessage(e,t,r,n,o){const a=this.nextMessageId(),i={id:a,method:r};if(n&&(i.params=n),e&&(i.sessionId=e),l.dumpProtocol&&l.dumpProtocol("frontend: "+JSON.stringify(i)),l.onMessageSent){const o=JSON.parse(JSON.stringify(n||{}));l.onMessageSent({domain:t,method:r,params:o,id:a,sessionId:e},this.getTargetBySessionId(e))}++this.#o,m.has(r)&&this.#a.add(a);const s=this.#i.get(e);s&&(s.callbacks.set(a,{callback:o,method:r}),this.#r.sendRawMessage(JSON.stringify(i)))}sendRawMessageForTesting(e,t,r,n=""){const o=e.split(".")[0];this.sendMessage(n,o,e,t,r||(()=>{}))}onMessage(e){if(l.dumpProtocol&&l.dumpProtocol("backend: "+("string"==typeof e?e:JSON.stringify(e))),l.onMessageReceived){const t=JSON.parse("string"==typeof e?e:JSON.stringify(e));l.onMessageReceived(t,this.getTargetBySessionId(t.sessionId))}const t="string"==typeof e?JSON.parse(e):e;let n=!1;for(const e of this.#i.values())e.proxyConnection&&(e.proxyConnection.onMessage?(e.proxyConnection.onMessage(t),n=!0):i.reportProtocolError("Protocol Error: the session has a proxyConnection with no _onMessage",t));const o=t.sessionId||"",a=this.#i.get(o);if(a){if(!a.proxyConnection)if(a.target.getNeedsNodeJSPatching()&&r.patch(t),void 0!==t.id){const e=a.callbacks.get(t.id);if(a.callbacks.delete(t.id),!e){if(-32001===t.error?.code)return;return void(n||i.reportProtocolError("Protocol Error: the message with wrong id",t))}e.callback(t.error||null,t.result||null),--this.#o,this.#a.delete(t.id),this.#s.length&&!this.hasOutstandingNonLongPollingRequests()&&this.deprecatedRunAfterPendingDispatches()}else{if(void 0===t.method)return void i.reportProtocolError("Protocol Error: the message without method",t);const e=t;a.target.dispatch(e)}}else n||i.reportProtocolError("Protocol Error: the message with wrong session id",t)}hasOutstandingNonLongPollingRequests(){return this.#o-this.#a.size>0}deprecatedRunAfterPendingDispatches(e){e&&this.#s.push(e),window.setTimeout((()=>{this.hasOutstandingNonLongPollingRequests()?this.deprecatedRunAfterPendingDispatches():this.executeAfterPendingDispatches()}),0)}executeAfterPendingDispatches(){if(!this.hasOutstandingNonLongPollingRequests()){const e=this.#s;this.#s=[];for(let t=0;t<e.length;++t)e[t]()}}static dispatchConnectionError(e,t){const r={message:`Connection is closed, can't dispatch pending call to ${t}`,code:-32001,data:null};window.setTimeout((()=>e(r,null)),0)}static dispatchUnregisterSessionError({callback:e,method:t}){const r={message:`Session is unregistering, can't dispatch pending call to ${t}`,code:-32001,data:null};window.setTimeout((()=>e(r,null)),0)}}class p{replyArgs;commandParameters;domain;target;constructor(e){this.replyArgs={},this.domain=e,this.commandParameters={}}registerCommand(e,t,r){const n=a(this.domain,e);this[e]=function(...e){return p.prototype.sendMessageToBackendPromise.call(this,n,t,e)},this.commandParameters[n]=t,this["invoke_"+e]=function(e={}){return this.invoke(n,e)},this.replyArgs[n]=r}prepareParameters(e,t,r,n){const o={};let a=!1;for(const i of t){const s=i.name,l=i.type,m=i.optional;if(!r.length&&!m)return n(`Protocol Error: Invalid number of arguments for method '${e}' call. It must have the following arguments ${JSON.stringify(t)}'.`),null;const d=r.shift();if(!m||void 0!==d){if(typeof d!==l)return n(`Protocol Error: Invalid type of argument '${s}' for method '${e}' call. It must be '${l}' but it is '${typeof d}'.`),null;o[s]=d,a=!0}}return r.length?(n(`Protocol Error: Extra ${r.length} arguments in a call to method '${e}'.`),null):a?o:null}sendMessageToBackendPromise(e,t,r){let n;const o=this.prepareParameters(e,t,r,(function(e){console.error(e),n=e}));return n?Promise.resolve(null):new Promise((t=>{const r=(r,n)=>{if(r)return l.suppressRequestErrors||-32015===r.code||-32e3===r.code||-32001===r.code||console.error("Request "+e+" failed. "+JSON.stringify(r)),void t(null);const o=this.replyArgs[e];t(n&&o.length?n[o[0]]:void 0)},n=this.target.router();n?n.sendMessage(this.target.sessionId,this.domain,e,o,r):d.dispatchConnectionError(r,e)}))}invoke(e,t){return new Promise((r=>{const n=(t,n)=>{t&&!l.suppressRequestErrors&&-32015!==t.code&&-32e3!==t.code&&-32001!==t.code&&console.error("Request "+e+" failed. "+JSON.stringify(t));const o=t?.message;r({...n,getError:()=>o})},o=this.target.router();o?o.sendMessage(this.target.sessionId,this.domain,e,t,n):d.dispatchConnectionError(n,e)}))}}class g{#l;#m=[];constructor(e){this.#l=e}addDomainDispatcher(e){this.#m.push(e)}removeDomainDispatcher(e){const t=this.#m.indexOf(e);-1!==t&&this.#m.splice(t,1)}dispatch(e,t){if(!this.#m.length)return;if(!this.#l.has(t.method))return void i.reportProtocolWarning(`Protocol Warning: Attempted to dispatch an unspecified event '${t.method}'`,t);const r={...t.params};for(let t=0;t<this.#m.length;++t){const n=this.#m[t];if(e in n){n[e].call(n,r)}}}}const c=new i;var u=Object.freeze({__proto__:null,DevToolsStubErrorCode:-32015,splitQualifiedName:o,qualifyName:a,InspectorBackend:i,Connection:class{onMessage;constructor(){}setOnMessage(e){}setOnDisconnect(e){}sendRawMessage(e){}disconnect(){throw new Error("not implemented")}static setFactory(e){s=e}static getFactory(){return s}},test:l,SessionRouter:d,TargetBase:class{needsNodeJSPatching;sessionId;routerInternal;#d=new Map;#m=new Map;constructor(e,t,r,n){if(this.needsNodeJSPatching=e,this.sessionId=r,!t&&n||!t&&r||n&&r)throw new Error("Either connection or sessionId (but not both) must be supplied for a child target");let o;o=r&&t&&t.routerInternal?t.routerInternal:new d(n||s()),this.routerInternal=o,o.registerSession(this,this.sessionId);for(const[e,t]of c.agentPrototypes){const r=Object.create(t);r.target=this,this.#d.set(e,r)}for(const[e,t]of c.getEventParameterNames().entries())this.#m.set(e,new g(t))}dispatch(e){const[t,r]=o(e.method),n=this.#m.get(t);n?n.dispatch(r,e):i.reportProtocolError(`Protocol Error: the message ${e.method} is for non-existing domain '${t}'`,e)}dispose(e){this.routerInternal&&(this.routerInternal.unregisterSession(this.sessionId),this.routerInternal=null)}isDisposed(){return!this.routerInternal}markAsNodeJSForTest(){this.needsNodeJSPatching=!0}router(){return this.routerInternal}getAgent(e){const t=this.#d.get(e);if(!t)throw new Error("Accessing undefined agent");return t}accessibilityAgent(){return this.getAgent("Accessibility")}animationAgent(){return this.getAgent("Animation")}auditsAgent(){return this.getAgent("Audits")}browserAgent(){return this.getAgent("Browser")}backgroundServiceAgent(){return this.getAgent("BackgroundService")}cacheStorageAgent(){return this.getAgent("CacheStorage")}cssAgent(){return this.getAgent("CSS")}databaseAgent(){return this.getAgent("Database")}debuggerAgent(){return this.getAgent("Debugger")}deviceOrientationAgent(){return this.getAgent("DeviceOrientation")}domAgent(){return this.getAgent("DOM")}domdebuggerAgent(){return this.getAgent("DOMDebugger")}domsnapshotAgent(){return this.getAgent("DOMSnapshot")}domstorageAgent(){return this.getAgent("DOMStorage")}emulationAgent(){return this.getAgent("Emulation")}eventBreakpointsAgent(){return this.getAgent("EventBreakpoints")}fetchAgent(){return this.getAgent("Fetch")}heapProfilerAgent(){return this.getAgent("HeapProfiler")}indexedDBAgent(){return this.getAgent("IndexedDB")}inputAgent(){return this.getAgent("Input")}ioAgent(){return this.getAgent("IO")}inspectorAgent(){return this.getAgent("Inspector")}layerTreeAgent(){return this.getAgent("LayerTree")}logAgent(){return this.getAgent("Log")}mediaAgent(){return this.getAgent("Media")}memoryAgent(){return this.getAgent("Memory")}networkAgent(){return this.getAgent("Network")}overlayAgent(){return this.getAgent("Overlay")}pageAgent(){return this.getAgent("Page")}preloadAgent(){return this.getAgent("Preload")}profilerAgent(){return this.getAgent("Profiler")}performanceAgent(){return this.getAgent("Performance")}runtimeAgent(){return this.getAgent("Runtime")}securityAgent(){return this.getAgent("Security")}serviceWorkerAgent(){return this.getAgent("ServiceWorker")}storageAgent(){return this.getAgent("Storage")}systemInfo(){return this.getAgent("SystemInfo")}targetAgent(){return this.getAgent("Target")}tracingAgent(){return this.getAgent("Tracing")}webAudioAgent(){return this.getAgent("WebAudio")}webAuthnAgent(){return this.getAgent("WebAuthn")}registerDispatcher(e,t){const r=this.#m.get(e);r&&r.addDomainDispatcher(t)}unregisterDispatcher(e,t){const r=this.#m.get(e);r&&r.removeDomainDispatcher(t)}registerAccessibilityDispatcher(e){this.registerDispatcher("Accessibility",e)}registerAnimationDispatcher(e){this.registerDispatcher("Animation",e)}registerAuditsDispatcher(e){this.registerDispatcher("Audits",e)}registerCSSDispatcher(e){this.registerDispatcher("CSS",e)}registerDatabaseDispatcher(e){this.registerDispatcher("Database",e)}registerBackgroundServiceDispatcher(e){this.registerDispatcher("BackgroundService",e)}registerDebuggerDispatcher(e){this.registerDispatcher("Debugger",e)}unregisterDebuggerDispatcher(e){this.unregisterDispatcher("Debugger",e)}registerDOMDispatcher(e){this.registerDispatcher("DOM",e)}registerDOMStorageDispatcher(e){this.registerDispatcher("DOMStorage",e)}registerFetchDispatcher(e){this.registerDispatcher("Fetch",e)}registerHeapProfilerDispatcher(e){this.registerDispatcher("HeapProfiler",e)}registerInspectorDispatcher(e){this.registerDispatcher("Inspector",e)}registerLayerTreeDispatcher(e){this.registerDispatcher("LayerTree",e)}registerLogDispatcher(e){this.registerDispatcher("Log",e)}registerMediaDispatcher(e){this.registerDispatcher("Media",e)}registerNetworkDispatcher(e){this.registerDispatcher("Network",e)}registerOverlayDispatcher(e){this.registerDispatcher("Overlay",e)}registerPageDispatcher(e){this.registerDispatcher("Page",e)}registerPreloadDispatcher(e){this.registerDispatcher("Preload",e)}registerProfilerDispatcher(e){this.registerDispatcher("Profiler",e)}registerRuntimeDispatcher(e){this.registerDispatcher("Runtime",e)}registerSecurityDispatcher(e){this.registerDispatcher("Security",e)}registerServiceWorkerDispatcher(e){this.registerDispatcher("ServiceWorker",e)}registerStorageDispatcher(e){this.registerDispatcher("Storage",e)}registerTargetDispatcher(e){this.registerDispatcher("Target",e)}registerTracingDispatcher(e){this.registerDispatcher("Tracing",e)}registerWebAudioDispatcher(e){this.registerDispatcher("WebAudio",e)}registerWebAuthnDispatcher(e){this.registerDispatcher("WebAuthn",e)}getNeedsNodeJSPatching(){return this.needsNodeJSPatching}},inspectorBackend:c});self.Protocol=self.Protocol||{},function(e){e.registerEnum("Accessibility.AXValueType",{Boolean:"boolean",Tristate:"tristate",BooleanOrUndefined:"booleanOrUndefined",Idref:"idref",IdrefList:"idrefList",Integer:"integer",Node:"node",NodeList:"nodeList",Number:"number",String:"string",ComputedString:"computedString",Token:"token",TokenList:"tokenList",DomRelation:"domRelation",Role:"role",InternalRole:"internalRole",ValueUndefined:"valueUndefined"}),e.registerEnum("Accessibility.AXValueSourceType",{Attribute:"attribute",Implicit:"implicit",Style:"style",Contents:"contents",Placeholder:"placeholder",RelatedElement:"relatedElement"}),e.registerEnum("Accessibility.AXValueNativeSourceType",{Description:"description",Figcaption:"figcaption",Label:"label",Labelfor:"labelfor",Labelwrapped:"labelwrapped",Legend:"legend",Rubyannotation:"rubyannotation",Tablecaption:"tablecaption",Title:"title",Other:"other"}),e.registerEnum("Accessibility.AXPropertyName",{Busy:"busy",Disabled:"disabled",Editable:"editable",Focusable:"focusable",Focused:"focused",Hidden:"hidden",HiddenRoot:"hiddenRoot",Invalid:"invalid",Keyshortcuts:"keyshortcuts",Settable:"settable",Roledescription:"roledescription",Live:"live",Atomic:"atomic",Relevant:"relevant",Root:"root",Autocomplete:"autocomplete",HasPopup:"hasPopup",Level:"level",Multiselectable:"multiselectable",Orientation:"orientation",Multiline:"multiline",Readonly:"readonly",Required:"required",Valuemin:"valuemin",Valuemax:"valuemax",Valuetext:"valuetext",Checked:"checked",Expanded:"expanded",Modal:"modal",Pressed:"pressed",Selected:"selected",Activedescendant:"activedescendant",Controls:"controls",Describedby:"describedby",Details:"details",Errormessage:"errormessage",Flowto:"flowto",Labelledby:"labelledby",Owns:"owns"}),e.registerEvent("Accessibility.loadComplete",["root"]),e.registerEvent("Accessibility.nodesUpdated",["nodes"]),e.registerCommand("Accessibility.disable",[],[]),e.registerCommand("Accessibility.enable",[],[]),e.registerCommand("Accessibility.getPartialAXTree",[{name:"nodeId",type:"number",optional:!0},{name:"backendNodeId",type:"number",optional:!0},{name:"objectId",type:"string",optional:!0},{name:"fetchRelatives",type:"boolean",optional:!0}],["nodes"]),e.registerCommand("Accessibility.getFullAXTree",[{name:"depth",type:"number",optional:!0},{name:"frameId",type:"string",optional:!0}],["nodes"]),e.registerCommand("Accessibility.getRootAXNode",[{name:"frameId",type:"string",optional:!0}],["node"]),e.registerCommand("Accessibility.getAXNodeAndAncestors",[{name:"nodeId",type:"number",optional:!0},{name:"backendNodeId",type:"number",optional:!0},{name:"objectId",type:"string",optional:!0}],["nodes"]),e.registerCommand("Accessibility.getChildAXNodes",[{name:"id",type:"string",optional:!1},{name:"frameId",type:"string",optional:!0}],["nodes"]),e.registerCommand("Accessibility.queryAXTree",[{name:"nodeId",type:"number",optional:!0},{name:"backendNodeId",type:"number",optional:!0},{name:"objectId",type:"string",optional:!0},{name:"accessibleName",type:"string",optional:!0},{name:"role",type:"string",optional:!0}],["nodes"]),e.registerEnum("Animation.AnimationType",{CSSTransition:"CSSTransition",CSSAnimation:"CSSAnimation",WebAnimation:"WebAnimation"}),e.registerEvent("Animation.animationCanceled",["id"]),e.registerEvent("Animation.animationCreated",["id"]),e.registerEvent("Animation.animationStarted",["animation"]),e.registerCommand("Animation.disable",[],[]),e.registerCommand("Animation.enable",[],[]),e.registerCommand("Animation.getCurrentTime",[{name:"id",type:"string",optional:!1}],["currentTime"]),e.registerCommand("Animation.getPlaybackRate",[],["playbackRate"]),e.registerCommand("Animation.releaseAnimations",[{name:"animations",type:"object",optional:!1}],[]),e.registerCommand("Animation.resolveAnimation",[{name:"animationId",type:"string",optional:!1}],["remoteObject"]),e.registerCommand("Animation.seekAnimations",[{name:"animations",type:"object",optional:!1},{name:"currentTime",type:"number",optional:!1}],[]),e.registerCommand("Animation.setPaused",[{name:"animations",type:"object",optional:!1},{name:"paused",type:"boolean",optional:!1}],[]),e.registerCommand("Animation.setPlaybackRate",[{name:"playbackRate",type:"number",optional:!1}],[]),e.registerCommand("Animation.setTiming",[{name:"animationId",type:"string",optional:!1},{name:"duration",type:"number",optional:!1},{name:"delay",type:"number",optional:!1}],[]),e.registerEnum("Audits.CookieExclusionReason",{ExcludeSameSiteUnspecifiedTreatedAsLax:"ExcludeSameSiteUnspecifiedTreatedAsLax",ExcludeSameSiteNoneInsecure:"ExcludeSameSiteNoneInsecure",ExcludeSameSiteLax:"ExcludeSameSiteLax",ExcludeSameSiteStrict:"ExcludeSameSiteStrict",ExcludeInvalidSameParty:"ExcludeInvalidSameParty",ExcludeSamePartyCrossPartyContext:"ExcludeSamePartyCrossPartyContext",ExcludeDomainNonASCII:"ExcludeDomainNonASCII",ExcludeThirdPartyCookieBlockedInFirstPartySet:"ExcludeThirdPartyCookieBlockedInFirstPartySet"}),e.registerEnum("Audits.CookieWarningReason",{WarnSameSiteUnspecifiedCrossSiteContext:"WarnSameSiteUnspecifiedCrossSiteContext",WarnSameSiteNoneInsecure:"WarnSameSiteNoneInsecure",WarnSameSiteUnspecifiedLaxAllowUnsafe:"WarnSameSiteUnspecifiedLaxAllowUnsafe",WarnSameSiteStrictLaxDowngradeStrict:"WarnSameSiteStrictLaxDowngradeStrict",WarnSameSiteStrictCrossDowngradeStrict:"WarnSameSiteStrictCrossDowngradeStrict",WarnSameSiteStrictCrossDowngradeLax:"WarnSameSiteStrictCrossDowngradeLax",WarnSameSiteLaxCrossDowngradeStrict:"WarnSameSiteLaxCrossDowngradeStrict",WarnSameSiteLaxCrossDowngradeLax:"WarnSameSiteLaxCrossDowngradeLax",WarnAttributeValueExceedsMaxSize:"WarnAttributeValueExceedsMaxSize",WarnDomainNonASCII:"WarnDomainNonASCII"}),e.registerEnum("Audits.CookieOperation",{SetCookie:"SetCookie",ReadCookie:"ReadCookie"}),e.registerEnum("Audits.MixedContentResolutionStatus",{MixedContentBlocked:"MixedContentBlocked",MixedContentAutomaticallyUpgraded:"MixedContentAutomaticallyUpgraded",MixedContentWarning:"MixedContentWarning"}),e.registerEnum("Audits.MixedContentResourceType",{AttributionSrc:"AttributionSrc",Audio:"Audio",Beacon:"Beacon",CSPReport:"CSPReport",Download:"Download",EventSource:"EventSource",Favicon:"Favicon",Font:"Font",Form:"Form",Frame:"Frame",Image:"Image",Import:"Import",Manifest:"Manifest",Ping:"Ping",PluginData:"PluginData",PluginResource:"PluginResource",Prefetch:"Prefetch",Resource:"Resource",Script:"Script",ServiceWorker:"ServiceWorker",SharedWorker:"SharedWorker",Stylesheet:"Stylesheet",Track:"Track",Video:"Video",Worker:"Worker",XMLHttpRequest:"XMLHttpRequest",XSLT:"XSLT"}),e.registerEnum("Audits.BlockedByResponseReason",{CoepFrameResourceNeedsCoepHeader:"CoepFrameResourceNeedsCoepHeader",CoopSandboxedIFrameCannotNavigateToCoopPage:"CoopSandboxedIFrameCannotNavigateToCoopPage",CorpNotSameOrigin:"CorpNotSameOrigin",CorpNotSameOriginAfterDefaultedToSameOriginByCoep:"CorpNotSameOriginAfterDefaultedToSameOriginByCoep",CorpNotSameSite:"CorpNotSameSite"}),e.registerEnum("Audits.HeavyAdResolutionStatus",{HeavyAdBlocked:"HeavyAdBlocked",HeavyAdWarning:"HeavyAdWarning"}),e.registerEnum("Audits.HeavyAdReason",{NetworkTotalLimit:"NetworkTotalLimit",CpuTotalLimit:"CpuTotalLimit",CpuPeakLimit:"CpuPeakLimit"}),e.registerEnum("Audits.ContentSecurityPolicyViolationType",{KInlineViolation:"kInlineViolation",KEvalViolation:"kEvalViolation",KURLViolation:"kURLViolation",KTrustedTypesSinkViolation:"kTrustedTypesSinkViolation",KTrustedTypesPolicyViolation:"kTrustedTypesPolicyViolation",KWasmEvalViolation:"kWasmEvalViolation"}),e.registerEnum("Audits.SharedArrayBufferIssueType",{TransferIssue:"TransferIssue",CreationIssue:"CreationIssue"}),e.registerEnum("Audits.AttributionReportingIssueType",{PermissionPolicyDisabled:"PermissionPolicyDisabled",UntrustworthyReportingOrigin:"UntrustworthyReportingOrigin",InsecureContext:"InsecureContext",InvalidHeader:"InvalidHeader",InvalidRegisterTriggerHeader:"InvalidRegisterTriggerHeader",SourceAndTriggerHeaders:"SourceAndTriggerHeaders",SourceIgnored:"SourceIgnored",TriggerIgnored:"TriggerIgnored",OsSourceIgnored:"OsSourceIgnored",OsTriggerIgnored:"OsTriggerIgnored",InvalidRegisterOsSourceHeader:"InvalidRegisterOsSourceHeader",InvalidRegisterOsTriggerHeader:"InvalidRegisterOsTriggerHeader",WebAndOsHeaders:"WebAndOsHeaders",NoWebOrOsSupport:"NoWebOrOsSupport"}),e.registerEnum("Audits.GenericIssueErrorType",{CrossOriginPortalPostMessageError:"CrossOriginPortalPostMessageError",FormLabelForNameError:"FormLabelForNameError",FormDuplicateIdForInputError:"FormDuplicateIdForInputError",FormInputWithNoLabelError:"FormInputWithNoLabelError",FormAutocompleteAttributeEmptyError:"FormAutocompleteAttributeEmptyError",FormEmptyIdAndNameAttributesForInputError:"FormEmptyIdAndNameAttributesForInputError",FormAriaLabelledByToNonExistingId:"FormAriaLabelledByToNonExistingId",FormInputAssignedAutocompleteValueToIdOrNameAttributeError:"FormInputAssignedAutocompleteValueToIdOrNameAttributeError",FormLabelHasNeitherForNorNestedInput:"FormLabelHasNeitherForNorNestedInput",FormLabelForMatchesNonExistingIdError:"FormLabelForMatchesNonExistingIdError",FormInputHasWrongButWellIntendedAutocompleteValueError:"FormInputHasWrongButWellIntendedAutocompleteValueError"}),e.registerEnum("Audits.ClientHintIssueReason",{MetaTagAllowListInvalidOrigin:"MetaTagAllowListInvalidOrigin",MetaTagModifiedHTML:"MetaTagModifiedHTML"}),e.registerEnum("Audits.FederatedAuthRequestIssueReason",{ShouldEmbargo:"ShouldEmbargo",TooManyRequests:"TooManyRequests",WellKnownHttpNotFound:"WellKnownHttpNotFound",WellKnownNoResponse:"WellKnownNoResponse",WellKnownInvalidResponse:"WellKnownInvalidResponse",WellKnownListEmpty:"WellKnownListEmpty",WellKnownInvalidContentType:"WellKnownInvalidContentType",ConfigNotInWellKnown:"ConfigNotInWellKnown",WellKnownTooBig:"WellKnownTooBig",ConfigHttpNotFound:"ConfigHttpNotFound",ConfigNoResponse:"ConfigNoResponse",ConfigInvalidResponse:"ConfigInvalidResponse",ConfigInvalidContentType:"ConfigInvalidContentType",ClientMetadataHttpNotFound:"ClientMetadataHttpNotFound",ClientMetadataNoResponse:"ClientMetadataNoResponse",ClientMetadataInvalidResponse:"ClientMetadataInvalidResponse",ClientMetadataInvalidContentType:"ClientMetadataInvalidContentType",DisabledInSettings:"DisabledInSettings",ErrorFetchingSignin:"ErrorFetchingSignin",InvalidSigninResponse:"InvalidSigninResponse",AccountsHttpNotFound:"AccountsHttpNotFound",AccountsNoResponse:"AccountsNoResponse",AccountsInvalidResponse:"AccountsInvalidResponse",AccountsListEmpty:"AccountsListEmpty",AccountsInvalidContentType:"AccountsInvalidContentType",IdTokenHttpNotFound:"IdTokenHttpNotFound",IdTokenNoResponse:"IdTokenNoResponse",IdTokenInvalidResponse:"IdTokenInvalidResponse",IdTokenInvalidRequest:"IdTokenInvalidRequest",IdTokenInvalidContentType:"IdTokenInvalidContentType",ErrorIdToken:"ErrorIdToken",Canceled:"Canceled",RpPageNotVisible:"RpPageNotVisible",SilentMediationFailure:"SilentMediationFailure",ThirdPartyCookiesBlocked:"ThirdPartyCookiesBlocked"}),e.registerEnum("Audits.FederatedAuthUserInfoRequestIssueReason",{NotSameOrigin:"NotSameOrigin",NotIframe:"NotIframe",NotPotentiallyTrustworthy:"NotPotentiallyTrustworthy",NoAPIPermission:"NoApiPermission",NotSignedInWithIdp:"NotSignedInWithIdp",NoAccountSharingPermission:"NoAccountSharingPermission",InvalidConfigOrWellKnown:"InvalidConfigOrWellKnown",InvalidAccountsResponse:"InvalidAccountsResponse",NoReturningUserFromFetchedAccounts:"NoReturningUserFromFetchedAccounts"}),e.registerEnum("Audits.StyleSheetLoadingIssueReason",{LateImportRule:"LateImportRule",RequestFailed:"RequestFailed"}),e.registerEnum("Audits.InspectorIssueCode",{CookieIssue:"CookieIssue",MixedContentIssue:"MixedContentIssue",BlockedByResponseIssue:"BlockedByResponseIssue",HeavyAdIssue:"HeavyAdIssue",ContentSecurityPolicyIssue:"ContentSecurityPolicyIssue",SharedArrayBufferIssue:"SharedArrayBufferIssue",LowTextContrastIssue:"LowTextContrastIssue",CorsIssue:"CorsIssue",AttributionReportingIssue:"AttributionReportingIssue",QuirksModeIssue:"QuirksModeIssue",NavigatorUserAgentIssue:"NavigatorUserAgentIssue",GenericIssue:"GenericIssue",DeprecationIssue:"DeprecationIssue",ClientHintIssue:"ClientHintIssue",FederatedAuthRequestIssue:"FederatedAuthRequestIssue",BounceTrackingIssue:"BounceTrackingIssue",StylesheetLoadingIssue:"StylesheetLoadingIssue",FederatedAuthUserInfoRequestIssue:"FederatedAuthUserInfoRequestIssue"}),e.registerEvent("Audits.issueAdded",["issue"]),e.registerEnum("Audits.GetEncodedResponseRequestEncoding",{Webp:"webp",Jpeg:"jpeg",Png:"png"}),e.registerCommand("Audits.getEncodedResponse",[{name:"requestId",type:"string",optional:!1},{name:"encoding",type:"string",optional:!1},{name:"quality",type:"number",optional:!0},{name:"sizeOnly",type:"boolean",optional:!0}],["body","originalSize","encodedSize"]),e.registerCommand("Audits.disable",[],[]),e.registerCommand("Audits.enable",[],[]),e.registerCommand("Audits.checkContrast",[{name:"reportAAA",type:"boolean",optional:!0}],[]),e.registerCommand("Audits.checkFormsIssues",[],["formIssues"]),e.registerCommand("Autofill.trigger",[{name:"fieldId",type:"number",optional:!1},{name:"frameId",type:"string",optional:!0},{name:"card",type:"object",optional:!1}],[]),e.registerCommand("Autofill.setAddresses",[{name:"addresses",type:"object",optional:!1}],[]),e.registerEnum("BackgroundService.ServiceName",{BackgroundFetch:"backgroundFetch",BackgroundSync:"backgroundSync",PushMessaging:"pushMessaging",Notifications:"notifications",PaymentHandler:"paymentHandler",PeriodicBackgroundSync:"periodicBackgroundSync"}),e.registerEvent("BackgroundService.recordingStateChanged",["isRecording","service"]),e.registerEvent("BackgroundService.backgroundServiceEventReceived",["backgroundServiceEvent"]),e.registerCommand("BackgroundService.startObserving",[{name:"service",type:"string",optional:!1}],[]),e.registerCommand("BackgroundService.stopObserving",[{name:"service",type:"string",optional:!1}],[]),e.registerCommand("BackgroundService.setRecording",[{name:"shouldRecord",type:"boolean",optional:!1},{name:"service",type:"string",optional:!1}],[]),e.registerCommand("BackgroundService.clearEvents",[{name:"service",type:"string",optional:!1}],[]),e.registerEnum("Browser.WindowState",{Normal:"normal",Minimized:"minimized",Maximized:"maximized",Fullscreen:"fullscreen"}),e.registerEnum("Browser.PermissionType",{AccessibilityEvents:"accessibilityEvents",AudioCapture:"audioCapture",BackgroundSync:"backgroundSync",BackgroundFetch:"backgroundFetch",ClipboardReadWrite:"clipboardReadWrite",ClipboardSanitizedWrite:"clipboardSanitizedWrite",DisplayCapture:"displayCapture",DurableStorage:"durableStorage",Flash:"flash",Geolocation:"geolocation",IdleDetection:"idleDetection",LocalFonts:"localFonts",Midi:"midi",MidiSysex:"midiSysex",Nfc:"nfc",Notifications:"notifications",PaymentHandler:"paymentHandler",PeriodicBackgroundSync:"periodicBackgroundSync",ProtectedMediaIdentifier:"protectedMediaIdentifier",Sensors:"sensors",StorageAccess:"storageAccess",TopLevelStorageAccess:"topLevelStorageAccess",VideoCapture:"videoCapture",VideoCapturePanTiltZoom:"videoCapturePanTiltZoom",WakeLockScreen:"wakeLockScreen",WakeLockSystem:"wakeLockSystem",WindowManagement:"windowManagement"}),e.registerEnum("Browser.PermissionSetting",{Granted:"granted",Denied:"denied",Prompt:"prompt"}),e.registerEnum("Browser.BrowserCommandId",{OpenTabSearch:"openTabSearch",CloseTabSearch:"closeTabSearch"}),e.registerEvent("Browser.downloadWillBegin",["frameId","guid","url","suggestedFilename"]),e.registerEnum("Browser.DownloadProgressEventState",{InProgress:"inProgress",Completed:"completed",Canceled:"canceled"}),e.registerEvent("Browser.downloadProgress",["guid","totalBytes","receivedBytes","state"]),e.registerCommand("Browser.setPermission",[{name:"permission",type:"object",optional:!1},{name:"setting",type:"string",optional:!1},{name:"origin",type:"string",optional:!0},{name:"browserContextId",type:"string",optional:!0}],[]),e.registerCommand("Browser.grantPermissions",[{name:"permissions",type:"object",optional:!1},{name:"origin",type:"string",optional:!0},{name:"browserContextId",type:"string",optional:!0}],[]),e.registerCommand("Browser.resetPermissions",[{name:"browserContextId",type:"string",optional:!0}],[]),e.registerEnum("Browser.SetDownloadBehaviorRequestBehavior",{Deny:"deny",Allow:"allow",AllowAndName:"allowAndName",Default:"default"}),e.registerCommand("Browser.setDownloadBehavior",[{name:"behavior",type:"string",optional:!1},{name:"browserContextId",type:"string",optional:!0},{name:"downloadPath",type:"string",optional:!0},{name:"eventsEnabled",type:"boolean",optional:!0}],[]),e.registerCommand("Browser.cancelDownload",[{name:"guid",type:"string",optional:!1},{name:"browserContextId",type:"string",optional:!0}],[]),e.registerCommand("Browser.close",[],[]),e.registerCommand("Browser.crash",[],[]),e.registerCommand("Browser.crashGpuProcess",[],[]),e.registerCommand("Browser.getVersion",[],["protocolVersion","product","revision","userAgent","jsVersion"]),e.registerCommand("Browser.getBrowserCommandLine",[],["arguments"]),e.registerCommand("Browser.getHistograms",[{name:"query",type:"string",optional:!0},{name:"delta",type:"boolean",optional:!0}],["histograms"]),e.registerCommand("Browser.getHistogram",[{name:"name",type:"string",optional:!1},{name:"delta",type:"boolean",optional:!0}],["histogram"]),e.registerCommand("Browser.getWindowBounds",[{name:"windowId",type:"number",optional:!1}],["bounds"]),e.registerCommand("Browser.getWindowForTarget",[{name:"targetId",type:"string",optional:!0}],["windowId","bounds"]),e.registerCommand("Browser.setWindowBounds",[{name:"windowId",type:"number",optional:!1},{name:"bounds",type:"object",optional:!1}],[]),e.registerCommand("Browser.setDockTile",[{name:"badgeLabel",type:"string",optional:!0},{name:"image",type:"string",optional:!0}],[]),e.registerCommand("Browser.executeBrowserCommand",[{name:"commandId",type:"string",optional:!1}],[]),e.registerCommand("Browser.addPrivacySandboxEnrollmentOverride",[{name:"url",type:"string",optional:!1}],[]),e.registerEnum("CSS.StyleSheetOrigin",{Injected:"injected",UserAgent:"user-agent",Inspector:"inspector",Regular:"regular"}),e.registerEnum("CSS.CSSMediaSource",{MediaRule:"mediaRule",ImportRule:"importRule",LinkedSheet:"linkedSheet",InlineSheet:"inlineSheet"}),e.registerEvent("CSS.fontsUpdated",["font"]),e.registerEvent("CSS.mediaQueryResultChanged",[]),e.registerEvent("CSS.styleSheetAdded",["header"]),e.registerEvent("CSS.styleSheetChanged",["styleSheetId"]),e.registerEvent("CSS.styleSheetRemoved",["styleSheetId"]),e.registerCommand("CSS.addRule",[{name:"styleSheetId",type:"string",optional:!1},{name:"ruleText",type:"string",optional:!1},{name:"location",type:"object",optional:!1}],["rule"]),e.registerCommand("CSS.collectClassNames",[{name:"styleSheetId",type:"string",optional:!1}],["classNames"]),e.registerCommand("CSS.createStyleSheet",[{name:"frameId",type:"string",optional:!1}],["styleSheetId"]),e.registerCommand("CSS.disable",[],[]),e.registerCommand("CSS.enable",[],[]),e.registerCommand("CSS.forcePseudoState",[{name:"nodeId",type:"number",optional:!1},{name:"forcedPseudoClasses",type:"object",optional:!1}],[]),e.registerCommand("CSS.getBackgroundColors",[{name:"nodeId",type:"number",optional:!1}],["backgroundColors","computedFontSize","computedFontWeight"]),e.registerCommand("CSS.getComputedStyleForNode",[{name:"nodeId",type:"number",optional:!1}],["computedStyle"]),e.registerCommand("CSS.getInlineStylesForNode",[{name:"nodeId",type:"number",optional:!1}],["inlineStyle","attributesStyle"]),e.registerCommand("CSS.getMatchedStylesForNode",[{name:"nodeId",type:"number",optional:!1}],["inlineStyle","attributesStyle","matchedCSSRules","pseudoElements","inherited","inheritedPseudoElements","cssKeyframesRules","cssPositionFallbackRules","parentLayoutNodeId"]),e.registerCommand("CSS.getMediaQueries",[],["medias"]),e.registerCommand("CSS.getPlatformFontsForNode",[{name:"nodeId",type:"number",optional:!1}],["fonts"]),e.registerCommand("CSS.getStyleSheetText",[{name:"styleSheetId",type:"string",optional:!1}],["text"]),e.registerCommand("CSS.getLayersForNode",[{name:"nodeId",type:"number",optional:!1}],["rootLayer"]),e.registerCommand("CSS.trackComputedStyleUpdates",[{name:"propertiesToTrack",type:"object",optional:!1}],[]),e.registerCommand("CSS.takeComputedStyleUpdates",[],["nodeIds"]),e.registerCommand("CSS.setEffectivePropertyValueForNode",[{name:"nodeId",type:"number",optional:!1},{name:"propertyName",type:"string",optional:!1},{name:"value",type:"string",optional:!1}],[]),e.registerCommand("CSS.setKeyframeKey",[{name:"styleSheetId",type:"string",optional:!1},{name:"range",type:"object",optional:!1},{name:"keyText",type:"string",optional:!1}],["keyText"]),e.registerCommand("CSS.setMediaText",[{name:"styleSheetId",type:"string",optional:!1},{name:"range",type:"object",optional:!1},{name:"text",type:"string",optional:!1}],["media"]),e.registerCommand("CSS.setContainerQueryText",[{name:"styleSheetId",type:"string",optional:!1},{name:"range",type:"object",optional:!1},{name:"text",type:"string",optional:!1}],["containerQuery"]),e.registerCommand("CSS.setSupportsText",[{name:"styleSheetId",type:"string",optional:!1},{name:"range",type:"object",optional:!1},{name:"text",type:"string",optional:!1}],["supports"]),e.registerCommand("CSS.setScopeText",[{name:"styleSheetId",type:"string",optional:!1},{name:"range",type:"object",optional:!1},{name:"text",type:"string",optional:!1}],["scope"]),e.registerCommand("CSS.setRuleSelector",[{name:"styleSheetId",type:"string",optional:!1},{name:"range",type:"object",optional:!1},{name:"selector",type:"string",optional:!1}],["selectorList"]),e.registerCommand("CSS.setStyleSheetText",[{name:"styleSheetId",type:"string",optional:!1},{name:"text",type:"string",optional:!1}],["sourceMapURL"]),e.registerCommand("CSS.setStyleTexts",[{name:"edits",type:"object",optional:!1}],["styles"]),e.registerCommand("CSS.startRuleUsageTracking",[],[]),e.registerCommand("CSS.stopRuleUsageTracking",[],["ruleUsage"]),e.registerCommand("CSS.takeCoverageDelta",[],["coverage","timestamp"]),e.registerCommand("CSS.setLocalFontsEnabled",[{name:"enabled",type:"boolean",optional:!1}],[]),e.registerEnum("CacheStorage.CachedResponseType",{Basic:"basic",Cors:"cors",Default:"default",Error:"error",OpaqueResponse:"opaqueResponse",OpaqueRedirect:"opaqueRedirect"}),e.registerCommand("CacheStorage.deleteCache",[{name:"cacheId",type:"string",optional:!1}],[]),e.registerCommand("CacheStorage.deleteEntry",[{name:"cacheId",type:"string",optional:!1},{name:"request",type:"string",optional:!1}],[]),e.registerCommand("CacheStorage.requestCacheNames",[{name:"securityOrigin",type:"string",optional:!0},{name:"storageKey",type:"string",optional:!0},{name:"storageBucket",type:"object",optional:!0}],["caches"]),e.registerCommand("CacheStorage.requestCachedResponse",[{name:"cacheId",type:"string",optional:!1},{name:"requestURL",type:"string",optional:!1},{name:"requestHeaders",type:"object",optional:!1}],["response"]),e.registerCommand("CacheStorage.requestEntries",[{name:"cacheId",type:"string",optional:!1},{name:"skipCount",type:"number",optional:!0},{name:"pageSize",type:"number",optional:!0},{name:"pathFilter",type:"string",optional:!0}],["cacheDataEntries","returnCount"]),e.registerEvent("Cast.sinksUpdated",["sinks"]),e.registerEvent("Cast.issueUpdated",["issueMessage"]),e.registerCommand("Cast.enable",[{name:"presentationUrl",type:"string",optional:!0}],[]),e.registerCommand("Cast.disable",[],[]),e.registerCommand("Cast.setSinkToUse",[{name:"sinkName",type:"string",optional:!1}],[]),e.registerCommand("Cast.startDesktopMirroring",[{name:"sinkName",type:"string",optional:!1}],[]),e.registerCommand("Cast.startTabMirroring",[{name:"sinkName",type:"string",optional:!1}],[]),e.registerCommand("Cast.stopCasting",[{name:"sinkName",type:"string",optional:!1}],[]),e.registerEnum("DOM.PseudoType",{FirstLine:"first-line",FirstLetter:"first-letter",Before:"before",After:"after",Marker:"marker",Backdrop:"backdrop",Selection:"selection",TargetText:"target-text",SpellingError:"spelling-error",GrammarError:"grammar-error",Highlight:"highlight",FirstLineInherited:"first-line-inherited",Scrollbar:"scrollbar",ScrollbarThumb:"scrollbar-thumb",ScrollbarButton:"scrollbar-button",ScrollbarTrack:"scrollbar-track",ScrollbarTrackPiece:"scrollbar-track-piece",ScrollbarCorner:"scrollbar-corner",Resizer:"resizer",InputListButton:"input-list-button",ViewTransition:"view-transition",ViewTransitionGroup:"view-transition-group",ViewTransitionImagePair:"view-transition-image-pair",ViewTransitionOld:"view-transition-old",ViewTransitionNew:"view-transition-new"}),e.registerEnum("DOM.ShadowRootType",{UserAgent:"user-agent",Open:"open",Closed:"closed"}),e.registerEnum("DOM.CompatibilityMode",{QuirksMode:"QuirksMode",LimitedQuirksMode:"LimitedQuirksMode",NoQuirksMode:"NoQuirksMode"}),e.registerEnum("DOM.PhysicalAxes",{Horizontal:"Horizontal",Vertical:"Vertical",Both:"Both"}),e.registerEnum("DOM.LogicalAxes",{Inline:"Inline",Block:"Block",Both:"Both"}),e.registerEvent("DOM.attributeModified",["nodeId","name","value"]),e.registerEvent("DOM.attributeRemoved",["nodeId","name"]),e.registerEvent("DOM.characterDataModified",["nodeId","characterData"]),e.registerEvent("DOM.childNodeCountUpdated",["nodeId","childNodeCount"]),e.registerEvent("DOM.childNodeInserted",["parentNodeId","previousNodeId","node"]),e.registerEvent("DOM.childNodeRemoved",["parentNodeId","nodeId"]),e.registerEvent("DOM.distributedNodesUpdated",["insertionPointId","distributedNodes"]),e.registerEvent("DOM.documentUpdated",[]),e.registerEvent("DOM.inlineStyleInvalidated",["nodeIds"]),e.registerEvent("DOM.pseudoElementAdded",["parentId","pseudoElement"]),e.registerEvent("DOM.topLayerElementsUpdated",[]),e.registerEvent("DOM.pseudoElementRemoved",["parentId","pseudoElementId"]),e.registerEvent("DOM.setChildNodes",["parentId","nodes"]),e.registerEvent("DOM.shadowRootPopped",["hostId","rootId"]),e.registerEvent("DOM.shadowRootPushed",["hostId","root"]),e.registerCommand("DOM.collectClassNamesFromSubtree",[{name:"nodeId",type:"number",optional:!1}],["classNames"]),e.registerCommand("DOM.copyTo",[{name:"nodeId",type:"number",optional:!1},{name:"targetNodeId",type:"number",optional:!1},{name:"insertBeforeNodeId",type:"number",optional:!0}],["nodeId"]),e.registerCommand("DOM.describeNode",[{name:"nodeId",type:"number",optional:!0},{name:"backendNodeId",type:"number",optional:!0},{name:"objectId",type:"string",optional:!0},{name:"depth",type:"number",optional:!0},{name:"pierce",type:"boolean",optional:!0}],["node"]),e.registerCommand("DOM.scrollIntoViewIfNeeded",[{name:"nodeId",type:"number",optional:!0},{name:"backendNodeId",type:"number",optional:!0},{name:"objectId",type:"string",optional:!0},{name:"rect",type:"object",optional:!0}],[]),e.registerCommand("DOM.disable",[],[]),e.registerCommand("DOM.discardSearchResults",[{name:"searchId",type:"string",optional:!1}],[]),e.registerEnum("DOM.EnableRequestIncludeWhitespace",{None:"none",All:"all"}),e.registerCommand("DOM.enable",[{name:"includeWhitespace",type:"string",optional:!0}],[]),e.registerCommand("DOM.focus",[{name:"nodeId",type:"number",optional:!0},{name:"backendNodeId",type:"number",optional:!0},{name:"objectId",type:"string",optional:!0}],[]),e.registerCommand("DOM.getAttributes",[{name:"nodeId",type:"number",optional:!1}],["attributes"]),e.registerCommand("DOM.getBoxModel",[{name:"nodeId",type:"number",optional:!0},{name:"backendNodeId",type:"number",optional:!0},{name:"objectId",type:"string",optional:!0}],["model"]),e.registerCommand("DOM.getContentQuads",[{name:"nodeId",type:"number",optional:!0},{name:"backendNodeId",type:"number",optional:!0},{name:"objectId",type:"string",optional:!0}],["quads"]),e.registerCommand("DOM.getDocument",[{name:"depth",type:"number",optional:!0},{name:"pierce",type:"boolean",optional:!0}],["root"]),e.registerCommand("DOM.getFlattenedDocument",[{name:"depth",type:"number",optional:!0},{name:"pierce",type:"boolean",optional:!0}],["nodes"]),e.registerCommand("DOM.getNodesForSubtreeByStyle",[{name:"nodeId",type:"number",optional:!1},{name:"computedStyles",type:"object",optional:!1},{name:"pierce",type:"boolean",optional:!0}],["nodeIds"]),e.registerCommand("DOM.getNodeForLocation",[{name:"x",type:"number",optional:!1},{name:"y",type:"number",optional:!1},{name:"includeUserAgentShadowDOM",type:"boolean",optional:!0},{name:"ignorePointerEventsNone",type:"boolean",optional:!0}],["backendNodeId","frameId","nodeId"]),e.registerCommand("DOM.getOuterHTML",[{name:"nodeId",type:"number",optional:!0},{name:"backendNodeId",type:"number",optional:!0},{name:"objectId",type:"string",optional:!0}],["outerHTML"]),e.registerCommand("DOM.getRelayoutBoundary",[{name:"nodeId",type:"number",optional:!1}],["nodeId"]),e.registerCommand("DOM.getSearchResults",[{name:"searchId",type:"string",optional:!1},{name:"fromIndex",type:"number",optional:!1},{name:"toIndex",type:"number",optional:!1}],["nodeIds"]),e.registerCommand("DOM.hideHighlight",[],[]),e.registerCommand("DOM.highlightNode",[],[]),e.registerCommand("DOM.highlightRect",[],[]),e.registerCommand("DOM.markUndoableState",[],[]),e.registerCommand("DOM.moveTo",[{name:"nodeId",type:"number",optional:!1},{name:"targetNodeId",type:"number",optional:!1},{name:"insertBeforeNodeId",type:"number",optional:!0}],["nodeId"]),e.registerCommand("DOM.performSearch",[{name:"query",type:"string",optional:!1},{name:"includeUserAgentShadowDOM",type:"boolean",optional:!0}],["searchId","resultCount"]),e.registerCommand("DOM.pushNodeByPathToFrontend",[{name:"path",type:"string",optional:!1}],["nodeId"]),e.registerCommand("DOM.pushNodesByBackendIdsToFrontend",[{name:"backendNodeIds",type:"object",optional:!1}],["nodeIds"]),e.registerCommand("DOM.querySelector",[{name:"nodeId",type:"number",optional:!1},{name:"selector",type:"string",optional:!1}],["nodeId"]),e.registerCommand("DOM.querySelectorAll",[{name:"nodeId",type:"number",optional:!1},{name:"selector",type:"string",optional:!1}],["nodeIds"]),e.registerCommand("DOM.getTopLayerElements",[],["nodeIds"]),e.registerCommand("DOM.redo",[],[]),e.registerCommand("DOM.removeAttribute",[{name:"nodeId",type:"number",optional:!1},{name:"name",type:"string",optional:!1}],[]),e.registerCommand("DOM.removeNode",[{name:"nodeId",type:"number",optional:!1}],[]),e.registerCommand("DOM.requestChildNodes",[{name:"nodeId",type:"number",optional:!1},{name:"depth",type:"number",optional:!0},{name:"pierce",type:"boolean",optional:!0}],[]),e.registerCommand("DOM.requestNode",[{name:"objectId",type:"string",optional:!1}],["nodeId"]),e.registerCommand("DOM.resolveNode",[{name:"nodeId",type:"number",optional:!0},{name:"backendNodeId",type:"number",optional:!0},{name:"objectGroup",type:"string",optional:!0},{name:"executionContextId",type:"number",optional:!0}],["object"]),e.registerCommand("DOM.setAttributeValue",[{name:"nodeId",type:"number",optional:!1},{name:"name",type:"string",optional:!1},{name:"value",type:"string",optional:!1}],[]),e.registerCommand("DOM.setAttributesAsText",[{name:"nodeId",type:"number",optional:!1},{name:"text",type:"string",optional:!1},{name:"name",type:"string",optional:!0}],[]),e.registerCommand("DOM.setFileInputFiles",[{name:"files",type:"object",optional:!1},{name:"nodeId",type:"number",optional:!0},{name:"backendNodeId",type:"number",optional:!0},{name:"objectId",type:"string",optional:!0}],[]),e.registerCommand("DOM.setNodeStackTracesEnabled",[{name:"enable",type:"boolean",optional:!1}],[]),e.registerCommand("DOM.getNodeStackTraces",[{name:"nodeId",type:"number",optional:!1}],["creation"]),e.registerCommand("DOM.getFileInfo",[{name:"objectId",type:"string",optional:!1}],["path"]),e.registerCommand("DOM.setInspectedNode",[{name:"nodeId",type:"number",optional:!1}],[]),e.registerCommand("DOM.setNodeName",[{name:"nodeId",type:"number",optional:!1},{name:"name",type:"string",optional:!1}],["nodeId"]),e.registerCommand("DOM.setNodeValue",[{name:"nodeId",type:"number",optional:!1},{name:"value",type:"string",optional:!1}],[]),e.registerCommand("DOM.setOuterHTML",[{name:"nodeId",type:"number",optional:!1},{name:"outerHTML",type:"string",optional:!1}],[]),e.registerCommand("DOM.undo",[],[]),e.registerCommand("DOM.getFrameOwner",[{name:"frameId",type:"string",optional:!1}],["backendNodeId","nodeId"]),e.registerCommand("DOM.getContainerForNode",[{name:"nodeId",type:"number",optional:!1},{name:"containerName",type:"string",optional:!0},{name:"physicalAxes",type:"string",optional:!0},{name:"logicalAxes",type:"string",optional:!0}],["nodeId"]),e.registerCommand("DOM.getQueryingDescendantsForContainer",[{name:"nodeId",type:"number",optional:!1}],["nodeIds"]),e.registerEnum("DOMDebugger.DOMBreakpointType",{SubtreeModified:"subtree-modified",AttributeModified:"attribute-modified",NodeRemoved:"node-removed"}),e.registerEnum("DOMDebugger.CSPViolationType",{TrustedtypeSinkViolation:"trustedtype-sink-violation",TrustedtypePolicyViolation:"trustedtype-policy-violation"}),e.registerCommand("DOMDebugger.getEventListeners",[{name:"objectId",type:"string",optional:!1},{name:"depth",type:"number",optional:!0},{name:"pierce",type:"boolean",optional:!0}],["listeners"]),e.registerCommand("DOMDebugger.removeDOMBreakpoint",[{name:"nodeId",type:"number",optional:!1},{name:"type",type:"string",optional:!1}],[]),e.registerCommand("DOMDebugger.removeEventListenerBreakpoint",[{name:"eventName",type:"string",optional:!1},{name:"targetName",type:"string",optional:!0}],[]),e.registerCommand("DOMDebugger.removeInstrumentationBreakpoint",[{name:"eventName",type:"string",optional:!1}],[]),e.registerCommand("DOMDebugger.removeXHRBreakpoint",[{name:"url",type:"string",optional:!1}],[]),e.registerCommand("DOMDebugger.setBreakOnCSPViolation",[{name:"violationTypes",type:"object",optional:!1}],[]),e.registerCommand("DOMDebugger.setDOMBreakpoint",[{name:"nodeId",type:"number",optional:!1},{name:"type",type:"string",optional:!1}],[]),e.registerCommand("DOMDebugger.setEventListenerBreakpoint",[{name:"eventName",type:"string",optional:!1},{name:"targetName",type:"string",optional:!0}],[]),e.registerCommand("DOMDebugger.setInstrumentationBreakpoint",[{name:"eventName",type:"string",optional:!1}],[]),e.registerCommand("DOMDebugger.setXHRBreakpoint",[{name:"url",type:"string",optional:!1}],[]),e.registerCommand("EventBreakpoints.setInstrumentationBreakpoint",[{name:"eventName",type:"string",optional:!1}],[]),e.registerCommand("EventBreakpoints.removeInstrumentationBreakpoint",[{name:"eventName",type:"string",optional:!1}],[]),e.registerCommand("DOMSnapshot.disable",[],[]),e.registerCommand("DOMSnapshot.enable",[],[]),e.registerCommand("DOMSnapshot.getSnapshot",[{name:"computedStyleWhitelist",type:"object",optional:!1},{name:"includeEventListeners",type:"boolean",optional:!0},{name:"includePaintOrder",type:"boolean",optional:!0},{name:"includeUserAgentShadowTree",type:"boolean",optional:!0}],["domNodes","layoutTreeNodes","computedStyles"]),e.registerCommand("DOMSnapshot.captureSnapshot",[{name:"computedStyles",type:"object",optional:!1},{name:"includePaintOrder",type:"boolean",optional:!0},{name:"includeDOMRects",type:"boolean",optional:!0},{name:"includeBlendedBackgroundColors",type:"boolean",optional:!0},{name:"includeTextColorOpacities",type:"boolean",optional:!0}],["documents","strings"]),e.registerEvent("DOMStorage.domStorageItemAdded",["storageId","key","newValue"]),e.registerEvent("DOMStorage.domStorageItemRemoved",["storageId","key"]),e.registerEvent("DOMStorage.domStorageItemUpdated",["storageId","key","oldValue","newValue"]),e.registerEvent("DOMStorage.domStorageItemsCleared",["storageId"]),e.registerCommand("DOMStorage.clear",[{name:"storageId",type:"object",optional:!1}],[]),e.registerCommand("DOMStorage.disable",[],[]),e.registerCommand("DOMStorage.enable",[],[]),e.registerCommand("DOMStorage.getDOMStorageItems",[{name:"storageId",type:"object",optional:!1}],["entries"]),e.registerCommand("DOMStorage.removeDOMStorageItem",[{name:"storageId",type:"object",optional:!1},{name:"key",type:"string",optional:!1}],[]),e.registerCommand("DOMStorage.setDOMStorageItem",[{name:"storageId",type:"object",optional:!1},{name:"key",type:"string",optional:!1},{name:"value",type:"string",optional:!1}],[]),e.registerEvent("Database.addDatabase",["database"]),e.registerCommand("Database.disable",[],[]),e.registerCommand("Database.enable",[],[]),e.registerCommand("Database.executeSQL",[{name:"databaseId",type:"string",optional:!1},{name:"query",type:"string",optional:!1}],["columnNames","values","sqlError"]),e.registerCommand("Database.getDatabaseTableNames",[{name:"databaseId",type:"string",optional:!1}],["tableNames"]),e.registerCommand("DeviceOrientation.clearDeviceOrientationOverride",[],[]),e.registerCommand("DeviceOrientation.setDeviceOrientationOverride",[{name:"alpha",type:"number",optional:!1},{name:"beta",type:"number",optional:!1},{name:"gamma",type:"number",optional:!1}],[]),e.registerEnum("Emulation.ScreenOrientationType",{PortraitPrimary:"portraitPrimary",PortraitSecondary:"portraitSecondary",LandscapePrimary:"landscapePrimary",LandscapeSecondary:"landscapeSecondary"}),e.registerEnum("Emulation.DisplayFeatureOrientation",{Vertical:"vertical",Horizontal:"horizontal"}),e.registerEnum("Emulation.VirtualTimePolicy",{Advance:"advance",Pause:"pause",PauseIfNetworkFetchesPending:"pauseIfNetworkFetchesPending"}),e.registerEnum("Emulation.DisabledImageType",{Avif:"avif",Webp:"webp"}),e.registerEvent("Emulation.virtualTimeBudgetExpired",[]),e.registerCommand("Emulation.canEmulate",[],["result"]),e.registerCommand("Emulation.clearDeviceMetricsOverride",[],[]),e.registerCommand("Emulation.clearGeolocationOverride",[],[]),e.registerCommand("Emulation.resetPageScaleFactor",[],[]),e.registerCommand("Emulation.setFocusEmulationEnabled",[{name:"enabled",type:"boolean",optional:!1}],[]),e.registerCommand("Emulation.setAutoDarkModeOverride",[{name:"enabled",type:"boolean",optional:!0}],[]),e.registerCommand("Emulation.setCPUThrottlingRate",[{name:"rate",type:"number",optional:!1}],[]),e.registerCommand("Emulation.setDefaultBackgroundColorOverride",[{name:"color",type:"object",optional:!0}],[]),e.registerCommand("Emulation.setDeviceMetricsOverride",[{name:"width",type:"number",optional:!1},{name:"height",type:"number",optional:!1},{name:"deviceScaleFactor",type:"number",optional:!1},{name:"mobile",type:"boolean",optional:!1},{name:"scale",type:"number",optional:!0},{name:"screenWidth",type:"number",optional:!0},{name:"screenHeight",type:"number",optional:!0},{name:"positionX",type:"number",optional:!0},{name:"positionY",type:"number",optional:!0},{name:"dontSetVisibleSize",type:"boolean",optional:!0},{name:"screenOrientation",type:"object",optional:!0},{name:"viewport",type:"object",optional:!0},{name:"displayFeature",type:"object",optional:!0}],[]),e.registerCommand("Emulation.setScrollbarsHidden",[{name:"hidden",type:"boolean",optional:!1}],[]),e.registerCommand("Emulation.setDocumentCookieDisabled",[{name:"disabled",type:"boolean",optional:!1}],[]),e.registerEnum("Emulation.SetEmitTouchEventsForMouseRequestConfiguration",{Mobile:"mobile",Desktop:"desktop"}),e.registerCommand("Emulation.setEmitTouchEventsForMouse",[{name:"enabled",type:"boolean",optional:!1},{name:"configuration",type:"string",optional:!0}],[]),e.registerCommand("Emulation.setEmulatedMedia",[{name:"media",type:"string",optional:!0},{name:"features",type:"object",optional:!0}],[]),e.registerEnum("Emulation.SetEmulatedVisionDeficiencyRequestType",{None:"none",BlurredVision:"blurredVision",ReducedContrast:"reducedContrast",Achromatopsia:"achromatopsia",Deuteranopia:"deuteranopia",Protanopia:"protanopia",Tritanopia:"tritanopia"}),e.registerCommand("Emulation.setEmulatedVisionDeficiency",[{name:"type",type:"string",optional:!1}],[]),e.registerCommand("Emulation.setGeolocationOverride",[{name:"latitude",type:"number",optional:!0},{name:"longitude",type:"number",optional:!0},{name:"accuracy",type:"number",optional:!0}],[]),e.registerCommand("Emulation.setIdleOverride",[{name:"isUserActive",type:"boolean",optional:!1},{name:"isScreenUnlocked",type:"boolean",optional:!1}],[]),e.registerCommand("Emulation.clearIdleOverride",[],[]),e.registerCommand("Emulation.setNavigatorOverrides",[{name:"platform",type:"string",optional:!1}],[]),e.registerCommand("Emulation.setPageScaleFactor",[{name:"pageScaleFactor",type:"number",optional:!1}],[]),e.registerCommand("Emulation.setScriptExecutionDisabled",[{name:"value",type:"boolean",optional:!1}],[]),e.registerCommand("Emulation.setTouchEmulationEnabled",[{name:"enabled",type:"boolean",optional:!1},{name:"maxTouchPoints",type:"number",optional:!0}],[]),e.registerCommand("Emulation.setVirtualTimePolicy",[{name:"policy",type:"string",optional:!1},{name:"budget",type:"number",optional:!0},{name:"maxVirtualTimeTaskStarvationCount",type:"number",optional:!0},{name:"initialVirtualTime",type:"number",optional:!0}],["virtualTimeTicksBase"]),e.registerCommand("Emulation.setLocaleOverride",[{name:"locale",type:"string",optional:!0}],[]),e.registerCommand("Emulation.setTimezoneOverride",[{name:"timezoneId",type:"string",optional:!1}],[]),e.registerCommand("Emulation.setVisibleSize",[{name:"width",type:"number",optional:!1},{name:"height",type:"number",optional:!1}],[]),e.registerCommand("Emulation.setDisabledImageTypes",[{name:"imageTypes",type:"object",optional:!1}],[]),e.registerCommand("Emulation.setHardwareConcurrencyOverride",[{name:"hardwareConcurrency",type:"number",optional:!1}],[]),e.registerCommand("Emulation.setUserAgentOverride",[{name:"userAgent",type:"string",optional:!1},{name:"acceptLanguage",type:"string",optional:!0},{name:"platform",type:"string",optional:!0},{name:"userAgentMetadata",type:"object",optional:!0}],[]),e.registerCommand("Emulation.setAutomationOverride",[{name:"enabled",type:"boolean",optional:!1}],[]),e.registerEnum("HeadlessExperimental.ScreenshotParamsFormat",{Jpeg:"jpeg",Png:"png",Webp:"webp"}),e.registerCommand("HeadlessExperimental.beginFrame",[{name:"frameTimeTicks",type:"number",optional:!0},{name:"interval",type:"number",optional:!0},{name:"noDisplayUpdates",type:"boolean",optional:!0},{name:"screenshot",type:"object",optional:!0}],["hasDamage","screenshotData"]),e.registerCommand("HeadlessExperimental.disable",[],[]),e.registerCommand("HeadlessExperimental.enable",[],[]),e.registerCommand("IO.close",[{name:"handle",type:"string",optional:!1}],[]),e.registerCommand("IO.read",[{name:"handle",type:"string",optional:!1},{name:"offset",type:"number",optional:!0},{name:"size",type:"number",optional:!0}],["base64Encoded","data","eof"]),e.registerCommand("IO.resolveBlob",[{name:"objectId",type:"string",optional:!1}],["uuid"]),e.registerEnum("IndexedDB.KeyType",{Number:"number",String:"string",Date:"date",Array:"array"}),e.registerEnum("IndexedDB.KeyPathType",{Null:"null",String:"string",Array:"array"}),e.registerCommand("IndexedDB.clearObjectStore",[{name:"securityOrigin",type:"string",optional:!0},{name:"storageKey",type:"string",optional:!0},{name:"storageBucket",type:"object",optional:!0},{name:"databaseName",type:"string",optional:!1},{name:"objectStoreName",type:"string",optional:!1}],[]),e.registerCommand("IndexedDB.deleteDatabase",[{name:"securityOrigin",type:"string",optional:!0},{name:"storageKey",type:"string",optional:!0},{name:"storageBucket",type:"object",optional:!0},{name:"databaseName",type:"string",optional:!1}],[]),e.registerCommand("IndexedDB.deleteObjectStoreEntries",[{name:"securityOrigin",type:"string",optional:!0},{name:"storageKey",type:"string",optional:!0},{name:"storageBucket",type:"object",optional:!0},{name:"databaseName",type:"string",optional:!1},{name:"objectStoreName",type:"string",optional:!1},{name:"keyRange",type:"object",optional:!1}],[]),e.registerCommand("IndexedDB.disable",[],[]),e.registerCommand("IndexedDB.enable",[],[]),e.registerCommand("IndexedDB.requestData",[{name:"securityOrigin",type:"string",optional:!0},{name:"storageKey",type:"string",optional:!0},{name:"storageBucket",type:"object",optional:!0},{name:"databaseName",type:"string",optional:!1},{name:"objectStoreName",type:"string",optional:!1},{name:"indexName",type:"string",optional:!1},{name:"skipCount",type:"number",optional:!1},{name:"pageSize",type:"number",optional:!1},{name:"keyRange",type:"object",optional:!0}],["objectStoreDataEntries","hasMore"]),e.registerCommand("IndexedDB.getMetadata",[{name:"securityOrigin",type:"string",optional:!0},{name:"storageKey",type:"string",optional:!0},{name:"storageBucket",type:"object",optional:!0},{name:"databaseName",type:"string",optional:!1},{name:"objectStoreName",type:"string",optional:!1}],["entriesCount","keyGeneratorValue"]),e.registerCommand("IndexedDB.requestDatabase",[{name:"securityOrigin",type:"string",optional:!0},{name:"storageKey",type:"string",optional:!0},{name:"storageBucket",type:"object",optional:!0},{name:"databaseName",type:"string",optional:!1}],["databaseWithObjectStores"]),e.registerCommand("IndexedDB.requestDatabaseNames",[{name:"securityOrigin",type:"string",optional:!0},{name:"storageKey",type:"string",optional:!0},{name:"storageBucket",type:"object",optional:!0}],["databaseNames"]),e.registerEnum("Input.GestureSourceType",{Default:"default",Touch:"touch",Mouse:"mouse"}),e.registerEnum("Input.MouseButton",{None:"none",Left:"left",Middle:"middle",Right:"right",Back:"back",Forward:"forward"}),e.registerEvent("Input.dragIntercepted",["data"]),e.registerEnum("Input.DispatchDragEventRequestType",{DragEnter:"dragEnter",DragOver:"dragOver",Drop:"drop",DragCancel:"dragCancel"}),e.registerCommand("Input.dispatchDragEvent",[{name:"type",type:"string",optional:!1},{name:"x",type:"number",optional:!1},{name:"y",type:"number",optional:!1},{name:"data",type:"object",optional:!1},{name:"modifiers",type:"number",optional:!0}],[]),e.registerEnum("Input.DispatchKeyEventRequestType",{KeyDown:"keyDown",KeyUp:"keyUp",RawKeyDown:"rawKeyDown",Char:"char"}),e.registerCommand("Input.dispatchKeyEvent",[{name:"type",type:"string",optional:!1},{name:"modifiers",type:"number",optional:!0},{name:"timestamp",type:"number",optional:!0},{name:"text",type:"string",optional:!0},{name:"unmodifiedText",type:"string",optional:!0},{name:"keyIdentifier",type:"string",optional:!0},{name:"code",type:"string",optional:!0},{name:"key",type:"string",optional:!0},{name:"windowsVirtualKeyCode",type:"number",optional:!0},{name:"nativeVirtualKeyCode",type:"number",optional:!0},{name:"autoRepeat",type:"boolean",optional:!0},{name:"isKeypad",type:"boolean",optional:!0},{name:"isSystemKey",type:"boolean",optional:!0},{name:"location",type:"number",optional:!0},{name:"commands",type:"object",optional:!0}],[]),e.registerCommand("Input.insertText",[{name:"text",type:"string",optional:!1}],[]),e.registerCommand("Input.imeSetComposition",[{name:"text",type:"string",optional:!1},{name:"selectionStart",type:"number",optional:!1},{name:"selectionEnd",type:"number",optional:!1},{name:"replacementStart",type:"number",optional:!0},{name:"replacementEnd",type:"number",optional:!0}],[]),e.registerEnum("Input.DispatchMouseEventRequestType",{MousePressed:"mousePressed",MouseReleased:"mouseReleased",MouseMoved:"mouseMoved",MouseWheel:"mouseWheel"}),e.registerEnum("Input.DispatchMouseEventRequestPointerType",{Mouse:"mouse",Pen:"pen"}),e.registerCommand("Input.dispatchMouseEvent",[{name:"type",type:"string",optional:!1},{name:"x",type:"number",optional:!1},{name:"y",type:"number",optional:!1},{name:"modifiers",type:"number",optional:!0},{name:"timestamp",type:"number",optional:!0},{name:"button",type:"string",optional:!0},{name:"buttons",type:"number",optional:!0},{name:"clickCount",type:"number",optional:!0},{name:"force",type:"number",optional:!0},{name:"tangentialPressure",type:"number",optional:!0},{name:"tiltX",type:"number",optional:!0},{name:"tiltY",type:"number",optional:!0},{name:"twist",type:"number",optional:!0},{name:"deltaX",type:"number",optional:!0},{name:"deltaY",type:"number",optional:!0},{name:"pointerType",type:"string",optional:!0}],[]),e.registerEnum("Input.DispatchTouchEventRequestType",{TouchStart:"touchStart",TouchEnd:"touchEnd",TouchMove:"touchMove",TouchCancel:"touchCancel"}),e.registerCommand("Input.dispatchTouchEvent",[{name:"type",type:"string",optional:!1},{name:"touchPoints",type:"object",optional:!1},{name:"modifiers",type:"number",optional:!0},{name:"timestamp",type:"number",optional:!0}],[]),e.registerEnum("Input.EmulateTouchFromMouseEventRequestType",{MousePressed:"mousePressed",MouseReleased:"mouseReleased",MouseMoved:"mouseMoved",MouseWheel:"mouseWheel"}),e.registerCommand("Input.emulateTouchFromMouseEvent",[{name:"type",type:"string",optional:!1},{name:"x",type:"number",optional:!1},{name:"y",type:"number",optional:!1},{name:"button",type:"string",optional:!1},{name:"timestamp",type:"number",optional:!0},{name:"deltaX",type:"number",optional:!0},{name:"deltaY",type:"number",optional:!0},{name:"modifiers",type:"number",optional:!0},{name:"clickCount",type:"number",optional:!0}],[]),e.registerCommand("Input.setIgnoreInputEvents",[{name:"ignore",type:"boolean",optional:!1}],[]),e.registerCommand("Input.setInterceptDrags",[{name:"enabled",type:"boolean",optional:!1}],[]),e.registerCommand("Input.synthesizePinchGesture",[{name:"x",type:"number",optional:!1},{name:"y",type:"number",optional:!1},{name:"scaleFactor",type:"number",optional:!1},{name:"relativeSpeed",type:"number",optional:!0},{name:"gestureSourceType",type:"string",optional:!0}],[]),e.registerCommand("Input.synthesizeScrollGesture",[{name:"x",type:"number",optional:!1},{name:"y",type:"number",optional:!1},{name:"xDistance",type:"number",optional:!0},{name:"yDistance",type:"number",optional:!0},{name:"xOverscroll",type:"number",optional:!0},{name:"yOverscroll",type:"number",optional:!0},{name:"preventFling",type:"boolean",optional:!0},{name:"speed",type:"number",optional:!0},{name:"gestureSourceType",type:"string",optional:!0},{name:"repeatCount",type:"number",optional:!0},{name:"repeatDelayMs",type:"number",optional:!0},{name:"interactionMarkerName",type:"string",optional:!0}],[]),e.registerCommand("Input.synthesizeTapGesture",[{name:"x",type:"number",optional:!1},{name:"y",type:"number",optional:!1},{name:"duration",type:"number",optional:!0},{name:"tapCount",type:"number",optional:!0},{name:"gestureSourceType",type:"string",optional:!0}],[]),e.registerEvent("Inspector.detached",["reason"]),e.registerEvent("Inspector.targetCrashed",[]),e.registerEvent("Inspector.targetReloadedAfterCrash",[]),e.registerCommand("Inspector.disable",[],[]),e.registerCommand("Inspector.enable",[],[]),e.registerEnum("LayerTree.ScrollRectType",{RepaintsOnScroll:"RepaintsOnScroll",TouchEventHandler:"TouchEventHandler",WheelEventHandler:"WheelEventHandler"}),e.registerEvent("LayerTree.layerPainted",["layerId","clip"]),e.registerEvent("LayerTree.layerTreeDidChange",["layers"]),e.registerCommand("LayerTree.compositingReasons",[{name:"layerId",type:"string",optional:!1}],["compositingReasons","compositingReasonIds"]),e.registerCommand("LayerTree.disable",[],[]),e.registerCommand("LayerTree.enable",[],[]),e.registerCommand("LayerTree.loadSnapshot",[{name:"tiles",type:"object",optional:!1}],["snapshotId"]),e.registerCommand("LayerTree.makeSnapshot",[{name:"layerId",type:"string",optional:!1}],["snapshotId"]),e.registerCommand("LayerTree.profileSnapshot",[{name:"snapshotId",type:"string",optional:!1},{name:"minRepeatCount",type:"number",optional:!0},{name:"minDuration",type:"number",optional:!0},{name:"clipRect",type:"object",optional:!0}],["timings"]),e.registerCommand("LayerTree.releaseSnapshot",[{name:"snapshotId",type:"string",optional:!1}],[]),e.registerCommand("LayerTree.replaySnapshot",[{name:"snapshotId",type:"string",optional:!1},{name:"fromStep",type:"number",optional:!0},{name:"toStep",type:"number",optional:!0},{name:"scale",type:"number",optional:!0}],["dataURL"]),e.registerCommand("LayerTree.snapshotCommandLog",[{name:"snapshotId",type:"string",optional:!1}],["commandLog"]),e.registerEnum("Log.LogEntrySource",{XML:"xml",Javascript:"javascript",Network:"network",Storage:"storage",Appcache:"appcache",Rendering:"rendering",Security:"security",Deprecation:"deprecation",Worker:"worker",Violation:"violation",Intervention:"intervention",Recommendation:"recommendation",Other:"other"}),e.registerEnum("Log.LogEntryLevel",{Verbose:"verbose",Info:"info",Warning:"warning",Error:"error"}),e.registerEnum("Log.LogEntryCategory",{Cors:"cors"}),e.registerEnum("Log.ViolationSettingName",{LongTask:"longTask",LongLayout:"longLayout",BlockedEvent:"blockedEvent",BlockedParser:"blockedParser",DiscouragedAPIUse:"discouragedAPIUse",Handler:"handler",RecurringHandler:"recurringHandler"}),e.registerEvent("Log.entryAdded",["entry"]),e.registerCommand("Log.clear",[],[]),e.registerCommand("Log.disable",[],[]),e.registerCommand("Log.enable",[],[]),e.registerCommand("Log.startViolationsReport",[{name:"config",type:"object",optional:!1}],[]),e.registerCommand("Log.stopViolationsReport",[],[]),e.registerEnum("Memory.PressureLevel",{Moderate:"moderate",Critical:"critical"}),e.registerCommand("Memory.getDOMCounters",[],["documents","nodes","jsEventListeners"]),e.registerCommand("Memory.prepareForLeakDetection",[],[]),e.registerCommand("Memory.forciblyPurgeJavaScriptMemory",[],[]),e.registerCommand("Memory.setPressureNotificationsSuppressed",[{name:"suppressed",type:"boolean",optional:!1}],[]),e.registerCommand("Memory.simulatePressureNotification",[{name:"level",type:"string",optional:!1}],[]),e.registerCommand("Memory.startSampling",[{name:"samplingInterval",type:"number",optional:!0},{name:"suppressRandomness",type:"boolean",optional:!0}],[]),e.registerCommand("Memory.stopSampling",[],[]),e.registerCommand("Memory.getAllTimeSamplingProfile",[],["profile"]),e.registerCommand("Memory.getBrowserSamplingProfile",[],["profile"]),e.registerCommand("Memory.getSamplingProfile",[],["profile"]),e.registerEnum("Network.ResourceType",{Document:"Document",Stylesheet:"Stylesheet",Image:"Image",Media:"Media",Font:"Font",Script:"Script",TextTrack:"TextTrack",XHR:"XHR",Fetch:"Fetch",Prefetch:"Prefetch",EventSource:"EventSource",WebSocket:"WebSocket",Manifest:"Manifest",SignedExchange:"SignedExchange",Ping:"Ping",CSPViolationReport:"CSPViolationReport",Preflight:"Preflight",Other:"Other"}),e.registerEnum("Network.ErrorReason",{Failed:"Failed",Aborted:"Aborted",TimedOut:"TimedOut",AccessDenied:"AccessDenied",ConnectionClosed:"ConnectionClosed",ConnectionReset:"ConnectionReset",ConnectionRefused:"ConnectionRefused",ConnectionAborted:"ConnectionAborted",ConnectionFailed:"ConnectionFailed",NameNotResolved:"NameNotResolved",InternetDisconnected:"InternetDisconnected",AddressUnreachable:"AddressUnreachable",BlockedByClient:"BlockedByClient",BlockedByResponse:"BlockedByResponse"}),e.registerEnum("Network.ConnectionType",{None:"none",Cellular2g:"cellular2g",Cellular3g:"cellular3g",Cellular4g:"cellular4g",Bluetooth:"bluetooth",Ethernet:"ethernet",Wifi:"wifi",Wimax:"wimax",Other:"other"}),e.registerEnum("Network.CookieSameSite",{Strict:"Strict",Lax:"Lax",None:"None"}),e.registerEnum("Network.CookiePriority",{Low:"Low",Medium:"Medium",High:"High"}),e.registerEnum("Network.CookieSourceScheme",{Unset:"Unset",NonSecure:"NonSecure",Secure:"Secure"}),e.registerEnum("Network.ResourcePriority",{VeryLow:"VeryLow",Low:"Low",Medium:"Medium",High:"High",VeryHigh:"VeryHigh"}),e.registerEnum("Network.RequestReferrerPolicy",{UnsafeUrl:"unsafe-url",NoReferrerWhenDowngrade:"no-referrer-when-downgrade",NoReferrer:"no-referrer",Origin:"origin",OriginWhenCrossOrigin:"origin-when-cross-origin",SameOrigin:"same-origin",StrictOrigin:"strict-origin",StrictOriginWhenCrossOrigin:"strict-origin-when-cross-origin"}),e.registerEnum("Network.CertificateTransparencyCompliance",{Unknown:"unknown",NotCompliant:"not-compliant",Compliant:"compliant"}),e.registerEnum("Network.BlockedReason",{Other:"other",Csp:"csp",MixedContent:"mixed-content",Origin:"origin",Inspector:"inspector",SubresourceFilter:"subresource-filter",ContentType:"content-type",CoepFrameResourceNeedsCoepHeader:"coep-frame-resource-needs-coep-header",CoopSandboxedIframeCannotNavigateToCoopPage:"coop-sandboxed-iframe-cannot-navigate-to-coop-page",CorpNotSameOrigin:"corp-not-same-origin",CorpNotSameOriginAfterDefaultedToSameOriginByCoep:"corp-not-same-origin-after-defaulted-to-same-origin-by-coep",CorpNotSameSite:"corp-not-same-site"}),e.registerEnum("Network.CorsError",{DisallowedByMode:"DisallowedByMode",InvalidResponse:"InvalidResponse",WildcardOriginNotAllowed:"WildcardOriginNotAllowed",MissingAllowOriginHeader:"MissingAllowOriginHeader",MultipleAllowOriginValues:"MultipleAllowOriginValues",InvalidAllowOriginValue:"InvalidAllowOriginValue",AllowOriginMismatch:"AllowOriginMismatch",InvalidAllowCredentials:"InvalidAllowCredentials",CorsDisabledScheme:"CorsDisabledScheme",PreflightInvalidStatus:"PreflightInvalidStatus",PreflightDisallowedRedirect:"PreflightDisallowedRedirect",PreflightWildcardOriginNotAllowed:"PreflightWildcardOriginNotAllowed",PreflightMissingAllowOriginHeader:"PreflightMissingAllowOriginHeader",PreflightMultipleAllowOriginValues:"PreflightMultipleAllowOriginValues",PreflightInvalidAllowOriginValue:"PreflightInvalidAllowOriginValue",PreflightAllowOriginMismatch:"PreflightAllowOriginMismatch",PreflightInvalidAllowCredentials:"PreflightInvalidAllowCredentials",PreflightMissingAllowExternal:"PreflightMissingAllowExternal",PreflightInvalidAllowExternal:"PreflightInvalidAllowExternal",PreflightMissingAllowPrivateNetwork:"PreflightMissingAllowPrivateNetwork",PreflightInvalidAllowPrivateNetwork:"PreflightInvalidAllowPrivateNetwork",InvalidAllowMethodsPreflightResponse:"InvalidAllowMethodsPreflightResponse",InvalidAllowHeadersPreflightResponse:"InvalidAllowHeadersPreflightResponse",MethodDisallowedByPreflightResponse:"MethodDisallowedByPreflightResponse",HeaderDisallowedByPreflightResponse:"HeaderDisallowedByPreflightResponse",RedirectContainsCredentials:"RedirectContainsCredentials",InsecurePrivateNetwork:"InsecurePrivateNetwork",InvalidPrivateNetworkAccess:"InvalidPrivateNetworkAccess",UnexpectedPrivateNetworkAccess:"UnexpectedPrivateNetworkAccess",NoCorsRedirectModeNotFollow:"NoCorsRedirectModeNotFollow"}),e.registerEnum("Network.ServiceWorkerResponseSource",{CacheStorage:"cache-storage",HttpCache:"http-cache",FallbackCode:"fallback-code",Network:"network"}),e.registerEnum("Network.TrustTokenParamsRefreshPolicy",{UseCached:"UseCached",Refresh:"Refresh"}),e.registerEnum("Network.TrustTokenOperationType",{Issuance:"Issuance",Redemption:"Redemption",Signing:"Signing"}),e.registerEnum("Network.AlternateProtocolUsage",{AlternativeJobWonWithoutRace:"alternativeJobWonWithoutRace",AlternativeJobWonRace:"alternativeJobWonRace",MainJobWonRace:"mainJobWonRace",MappingMissing:"mappingMissing",Broken:"broken",DnsAlpnH3JobWonWithoutRace:"dnsAlpnH3JobWonWithoutRace",DnsAlpnH3JobWonRace:"dnsAlpnH3JobWonRace",UnspecifiedReason:"unspecifiedReason"}),e.registerEnum("Network.InitiatorType",{Parser:"parser",Script:"script",Preload:"preload",SignedExchange:"SignedExchange",Preflight:"preflight",Other:"other"}),e.registerEnum("Network.SetCookieBlockedReason",{SecureOnly:"SecureOnly",SameSiteStrict:"SameSiteStrict",SameSiteLax:"SameSiteLax",SameSiteUnspecifiedTreatedAsLax:"SameSiteUnspecifiedTreatedAsLax",SameSiteNoneInsecure:"SameSiteNoneInsecure",UserPreferences:"UserPreferences",ThirdPartyBlockedInFirstPartySet:"ThirdPartyBlockedInFirstPartySet",SyntaxError:"SyntaxError",SchemeNotSupported:"SchemeNotSupported",OverwriteSecure:"OverwriteSecure",InvalidDomain:"InvalidDomain",InvalidPrefix:"InvalidPrefix",UnknownError:"UnknownError",SchemefulSameSiteStrict:"SchemefulSameSiteStrict",SchemefulSameSiteLax:"SchemefulSameSiteLax",SchemefulSameSiteUnspecifiedTreatedAsLax:"SchemefulSameSiteUnspecifiedTreatedAsLax",SamePartyFromCrossPartyContext:"SamePartyFromCrossPartyContext",SamePartyConflictsWithOtherAttributes:"SamePartyConflictsWithOtherAttributes",NameValuePairExceedsMaxSize:"NameValuePairExceedsMaxSize"}),e.registerEnum("Network.CookieBlockedReason",{SecureOnly:"SecureOnly",NotOnPath:"NotOnPath",DomainMismatch:"DomainMismatch",SameSiteStrict:"SameSiteStrict",SameSiteLax:"SameSiteLax",SameSiteUnspecifiedTreatedAsLax:"SameSiteUnspecifiedTreatedAsLax",SameSiteNoneInsecure:"SameSiteNoneInsecure",UserPreferences:"UserPreferences",ThirdPartyBlockedInFirstPartySet:"ThirdPartyBlockedInFirstPartySet",UnknownError:"UnknownError",SchemefulSameSiteStrict:"SchemefulSameSiteStrict",SchemefulSameSiteLax:"SchemefulSameSiteLax",SchemefulSameSiteUnspecifiedTreatedAsLax:"SchemefulSameSiteUnspecifiedTreatedAsLax",SamePartyFromCrossPartyContext:"SamePartyFromCrossPartyContext",NameValuePairExceedsMaxSize:"NameValuePairExceedsMaxSize"}),e.registerEnum("Network.AuthChallengeSource",{Server:"Server",Proxy:"Proxy"}),e.registerEnum("Network.AuthChallengeResponseResponse",{Default:"Default",CancelAuth:"CancelAuth",ProvideCredentials:"ProvideCredentials"}),e.registerEnum("Network.InterceptionStage",{Request:"Request",HeadersReceived:"HeadersReceived"}),e.registerEnum("Network.SignedExchangeErrorField",{SignatureSig:"signatureSig",SignatureIntegrity:"signatureIntegrity",SignatureCertUrl:"signatureCertUrl",SignatureCertSha256:"signatureCertSha256",SignatureValidityUrl:"signatureValidityUrl",SignatureTimestamps:"signatureTimestamps"}),e.registerEnum("Network.ContentEncoding",{Deflate:"deflate",Gzip:"gzip",Br:"br"}),e.registerEnum("Network.PrivateNetworkRequestPolicy",{Allow:"Allow",BlockFromInsecureToMorePrivate:"BlockFromInsecureToMorePrivate",WarnFromInsecureToMorePrivate:"WarnFromInsecureToMorePrivate",PreflightBlock:"PreflightBlock",PreflightWarn:"PreflightWarn"}),e.registerEnum("Network.IPAddressSpace",{Local:"Local",Private:"Private",Public:"Public",Unknown:"Unknown"}),e.registerEnum("Network.CrossOriginOpenerPolicyValue",{SameOrigin:"SameOrigin",SameOriginAllowPopups:"SameOriginAllowPopups",RestrictProperties:"RestrictProperties",UnsafeNone:"UnsafeNone",SameOriginPlusCoep:"SameOriginPlusCoep",RestrictPropertiesPlusCoep:"RestrictPropertiesPlusCoep"}),e.registerEnum("Network.CrossOriginEmbedderPolicyValue",{None:"None",Credentialless:"Credentialless",RequireCorp:"RequireCorp"}),e.registerEnum("Network.ContentSecurityPolicySource",{HTTP:"HTTP",Meta:"Meta"}),e.registerEnum("Network.ReportStatus",{Queued:"Queued",Pending:"Pending",MarkedForRemoval:"MarkedForRemoval",Success:"Success"}),e.registerEvent("Network.dataReceived",["requestId","timestamp","dataLength","encodedDataLength"]),e.registerEvent("Network.eventSourceMessageReceived",["requestId","timestamp","eventName","eventId","data"]),e.registerEvent("Network.loadingFailed",["requestId","timestamp","type","errorText","canceled","blockedReason","corsErrorStatus"]),e.registerEvent("Network.loadingFinished",["requestId","timestamp","encodedDataLength","shouldReportCorbBlocking"]),e.registerEvent("Network.requestIntercepted",["interceptionId","request","frameId","resourceType","isNavigationRequest","isDownload","redirectUrl","authChallenge","responseErrorReason","responseStatusCode","responseHeaders","requestId"]),e.registerEvent("Network.requestServedFromCache",["requestId"]),e.registerEvent("Network.requestWillBeSent",["requestId","loaderId","documentURL","request","timestamp","wallTime","initiator","redirectHasExtraInfo","redirectResponse","type","frameId","hasUserGesture"]),e.registerEvent("Network.resourceChangedPriority",["requestId","newPriority","timestamp"]),e.registerEvent("Network.signedExchangeReceived",["requestId","info"]),e.registerEvent("Network.responseReceived",["requestId","loaderId","timestamp","type","response","hasExtraInfo","frameId"]),e.registerEvent("Network.webSocketClosed",["requestId","timestamp"]),e.registerEvent("Network.webSocketCreated",["requestId","url","initiator"]),e.registerEvent("Network.webSocketFrameError",["requestId","timestamp","errorMessage"]),e.registerEvent("Network.webSocketFrameReceived",["requestId","timestamp","response"]),e.registerEvent("Network.webSocketFrameSent",["requestId","timestamp","response"]),e.registerEvent("Network.webSocketHandshakeResponseReceived",["requestId","timestamp","response"]),e.registerEvent("Network.webSocketWillSendHandshakeRequest",["requestId","timestamp","wallTime","request"]),e.registerEvent("Network.webTransportCreated",["transportId","url","timestamp","initiator"]),e.registerEvent("Network.webTransportConnectionEstablished",["transportId","timestamp"]),e.registerEvent("Network.webTransportClosed",["transportId","timestamp"]),e.registerEvent("Network.requestWillBeSentExtraInfo",["requestId","associatedCookies","headers","connectTiming","clientSecurityState","siteHasCookieInOtherPartition"]),e.registerEvent("Network.responseReceivedExtraInfo",["requestId","blockedCookies","headers","resourceIPAddressSpace","statusCode","headersText","cookiePartitionKey","cookiePartitionKeyOpaque"]),e.registerEnum("Network.TrustTokenOperationDoneEventStatus",{Ok:"Ok",InvalidArgument:"InvalidArgument",MissingIssuerKeys:"MissingIssuerKeys",FailedPrecondition:"FailedPrecondition",ResourceExhausted:"ResourceExhausted",AlreadyExists:"AlreadyExists",Unavailable:"Unavailable",Unauthorized:"Unauthorized",BadResponse:"BadResponse",InternalError:"InternalError",UnknownError:"UnknownError",FulfilledLocally:"FulfilledLocally"}),e.registerEvent("Network.trustTokenOperationDone",["status","type","requestId","topLevelOrigin","issuerOrigin","issuedTokenCount"]),e.registerEvent("Network.subresourceWebBundleMetadataReceived",["requestId","urls"]),e.registerEvent("Network.subresourceWebBundleMetadataError",["requestId","errorMessage"]),e.registerEvent("Network.subresourceWebBundleInnerResponseParsed",["innerRequestId","innerRequestURL","bundleRequestId"]),e.registerEvent("Network.subresourceWebBundleInnerResponseError",["innerRequestId","innerRequestURL","errorMessage","bundleRequestId"]),e.registerEvent("Network.reportingApiReportAdded",["report"]),e.registerEvent("Network.reportingApiReportUpdated",["report"]),e.registerEvent("Network.reportingApiEndpointsChangedForOrigin",["origin","endpoints"]),e.registerCommand("Network.setAcceptedEncodings",[{name:"encodings",type:"object",optional:!1}],[]),e.registerCommand("Network.clearAcceptedEncodingsOverride",[],[]),e.registerCommand("Network.canClearBrowserCache",[],["result"]),e.registerCommand("Network.canClearBrowserCookies",[],["result"]),e.registerCommand("Network.canEmulateNetworkConditions",[],["result"]),e.registerCommand("Network.clearBrowserCache",[],[]),e.registerCommand("Network.clearBrowserCookies",[],[]),e.registerCommand("Network.continueInterceptedRequest",[{name:"interceptionId",type:"string",optional:!1},{name:"errorReason",type:"string",optional:!0},{name:"rawResponse",type:"string",optional:!0},{name:"url",type:"string",optional:!0},{name:"method",type:"string",optional:!0},{name:"postData",type:"string",optional:!0},{name:"headers",type:"object",optional:!0},{name:"authChallengeResponse",type:"object",optional:!0}],[]),e.registerCommand("Network.deleteCookies",[{name:"name",type:"string",optional:!1},{name:"url",type:"string",optional:!0},{name:"domain",type:"string",optional:!0},{name:"path",type:"string",optional:!0}],[]),e.registerCommand("Network.disable",[],[]),e.registerCommand("Network.emulateNetworkConditions",[{name:"offline",type:"boolean",optional:!1},{name:"latency",type:"number",optional:!1},{name:"downloadThroughput",type:"number",optional:!1},{name:"uploadThroughput",type:"number",optional:!1},{name:"connectionType",type:"string",optional:!0}],[]),e.registerCommand("Network.enable",[{name:"maxTotalBufferSize",type:"number",optional:!0},{name:"maxResourceBufferSize",type:"number",optional:!0},{name:"maxPostDataSize",type:"number",optional:!0}],[]),e.registerCommand("Network.getAllCookies",[],["cookies"]),e.registerCommand("Network.getCertificate",[{name:"origin",type:"string",optional:!1}],["tableNames"]),e.registerCommand("Network.getCookies",[{name:"urls",type:"object",optional:!0}],["cookies"]),e.registerCommand("Network.getResponseBody",[{name:"requestId",type:"string",optional:!1}],["body","base64Encoded"]),e.registerCommand("Network.getRequestPostData",[{name:"requestId",type:"string",optional:!1}],["postData"]),e.registerCommand("Network.getResponseBodyForInterception",[{name:"interceptionId",type:"string",optional:!1}],["body","base64Encoded"]),e.registerCommand("Network.takeResponseBodyForInterceptionAsStream",[{name:"interceptionId",type:"string",optional:!1}],["stream"]),e.registerCommand("Network.replayXHR",[{name:"requestId",type:"string",optional:!1}],[]),e.registerCommand("Network.searchInResponseBody",[{name:"requestId",type:"string",optional:!1},{name:"query",type:"string",optional:!1},{name:"caseSensitive",type:"boolean",optional:!0},{name:"isRegex",type:"boolean",optional:!0}],["result"]),e.registerCommand("Network.setBlockedURLs",[{name:"urls",type:"object",optional:!1}],[]),e.registerCommand("Network.setBypassServiceWorker",[{name:"bypass",type:"boolean",optional:!1}],[]),e.registerCommand("Network.setCacheDisabled",[{name:"cacheDisabled",type:"boolean",optional:!1}],[]),e.registerCommand("Network.setCookie",[{name:"name",type:"string",optional:!1},{name:"value",type:"string",optional:!1},{name:"url",type:"string",optional:!0},{name:"domain",type:"string",optional:!0},{name:"path",type:"string",optional:!0},{name:"secure",type:"boolean",optional:!0},{name:"httpOnly",type:"boolean",optional:!0},{name:"sameSite",type:"string",optional:!0},{name:"expires",type:"number",optional:!0},{name:"priority",type:"string",optional:!0},{name:"sameParty",type:"boolean",optional:!0},{name:"sourceScheme",type:"string",optional:!0},{name:"sourcePort",type:"number",optional:!0},{name:"partitionKey",type:"string",optional:!0}],["success"]),e.registerCommand("Network.setCookies",[{name:"cookies",type:"object",optional:!1}],[]),e.registerCommand("Network.setExtraHTTPHeaders",[{name:"headers",type:"object",optional:!1}],[]),e.registerCommand("Network.setAttachDebugStack",[{name:"enabled",type:"boolean",optional:!1}],[]),e.registerCommand("Network.setRequestInterception",[{name:"patterns",type:"object",optional:!1}],[]),e.registerCommand("Network.setUserAgentOverride",[{name:"userAgent",type:"string",optional:!1},{name:"acceptLanguage",type:"string",optional:!0},{name:"platform",type:"string",optional:!0},{name:"userAgentMetadata",type:"object",optional:!0}],[]),e.registerCommand("Network.getSecurityIsolationStatus",[{name:"frameId",type:"string",optional:!0}],["status"]),e.registerCommand("Network.enableReportingApi",[{name:"enable",type:"boolean",optional:!1}],[]),e.registerCommand("Network.loadNetworkResource",[{name:"frameId",type:"string",optional:!0},{name:"url",type:"string",optional:!1},{name:"options",type:"object",optional:!1}],["resource"]),e.registerEnum("Overlay.LineStylePattern",{Dashed:"dashed",Dotted:"dotted"}),e.registerEnum("Overlay.ContrastAlgorithm",{Aa:"aa",Aaa:"aaa",Apca:"apca"}),e.registerEnum("Overlay.ColorFormat",{Rgb:"rgb",Hsl:"hsl",Hwb:"hwb",Hex:"hex"}),e.registerEnum("Overlay.InspectMode",{SearchForNode:"searchForNode",SearchForUAShadowDOM:"searchForUAShadowDOM",CaptureAreaScreenshot:"captureAreaScreenshot",ShowDistances:"showDistances",None:"none"}),e.registerEvent("Overlay.inspectNodeRequested",["backendNodeId"]),e.registerEvent("Overlay.nodeHighlightRequested",["nodeId"]),e.registerEvent("Overlay.screenshotRequested",["viewport"]),e.registerEvent("Overlay.inspectModeCanceled",[]),e.registerCommand("Overlay.disable",[],[]),e.registerCommand("Overlay.enable",[],[]),e.registerCommand("Overlay.getHighlightObjectForTest",[{name:"nodeId",type:"number",optional:!1},{name:"includeDistance",type:"boolean",optional:!0},{name:"includeStyle",type:"boolean",optional:!0},{name:"colorFormat",type:"string",optional:!0},{name:"showAccessibilityInfo",type:"boolean",optional:!0}],["highlight"]),e.registerCommand("Overlay.getGridHighlightObjectsForTest",[{name:"nodeIds",type:"object",optional:!1}],["highlights"]),e.registerCommand("Overlay.getSourceOrderHighlightObjectForTest",[{name:"nodeId",type:"number",optional:!1}],["highlight"]),e.registerCommand("Overlay.hideHighlight",[],[]),e.registerCommand("Overlay.highlightFrame",[{name:"frameId",type:"string",optional:!1},{name:"contentColor",type:"object",optional:!0},{name:"contentOutlineColor",type:"object",optional:!0}],[]),e.registerCommand("Overlay.highlightNode",[{name:"highlightConfig",type:"object",optional:!1},{name:"nodeId",type:"number",optional:!0},{name:"backendNodeId",type:"number",optional:!0},{name:"objectId",type:"string",optional:!0},{name:"selector",type:"string",optional:!0}],[]),e.registerCommand("Overlay.highlightQuad",[{name:"quad",type:"object",optional:!1},{name:"color",type:"object",optional:!0},{name:"outlineColor",type:"object",optional:!0}],[]),e.registerCommand("Overlay.highlightRect",[{name:"x",type:"number",optional:!1},{name:"y",type:"number",optional:!1},{name:"width",type:"number",optional:!1},{name:"height",type:"number",optional:!1},{name:"color",type:"object",optional:!0},{name:"outlineColor",type:"object",optional:!0}],[]),e.registerCommand("Overlay.highlightSourceOrder",[{name:"sourceOrderConfig",type:"object",optional:!1},{name:"nodeId",type:"number",optional:!0},{name:"backendNodeId",type:"number",optional:!0},{name:"objectId",type:"string",optional:!0}],[]),e.registerCommand("Overlay.setInspectMode",[{name:"mode",type:"string",optional:!1},{name:"highlightConfig",type:"object",optional:!0}],[]),e.registerCommand("Overlay.setShowAdHighlights",[{name:"show",type:"boolean",optional:!1}],[]),e.registerCommand("Overlay.setPausedInDebuggerMessage",[{name:"message",type:"string",optional:!0}],[]),e.registerCommand("Overlay.setShowDebugBorders",[{name:"show",type:"boolean",optional:!1}],[]),e.registerCommand("Overlay.setShowFPSCounter",[{name:"show",type:"boolean",optional:!1}],[]),e.registerCommand("Overlay.setShowGridOverlays",[{name:"gridNodeHighlightConfigs",type:"object",optional:!1}],[]),e.registerCommand("Overlay.setShowFlexOverlays",[{name:"flexNodeHighlightConfigs",type:"object",optional:!1}],[]),e.registerCommand("Overlay.setShowScrollSnapOverlays",[{name:"scrollSnapHighlightConfigs",type:"object",optional:!1}],[]),e.registerCommand("Overlay.setShowContainerQueryOverlays",[{name:"containerQueryHighlightConfigs",type:"object",optional:!1}],[]),e.registerCommand("Overlay.setShowPaintRects",[{name:"result",type:"boolean",optional:!1}],[]),e.registerCommand("Overlay.setShowLayoutShiftRegions",[{name:"result",type:"boolean",optional:!1}],[]),e.registerCommand("Overlay.setShowScrollBottleneckRects",[{name:"show",type:"boolean",optional:!1}],[]),e.registerCommand("Overlay.setShowHitTestBorders",[{name:"show",type:"boolean",optional:!1}],[]),e.registerCommand("Overlay.setShowWebVitals",[{name:"show",type:"boolean",optional:!1}],[]),e.registerCommand("Overlay.setShowViewportSizeOnResize",[{name:"show",type:"boolean",optional:!1}],[]),e.registerCommand("Overlay.setShowHinge",[{name:"hingeConfig",type:"object",optional:!0}],[]),e.registerCommand("Overlay.setShowIsolatedElements",[{name:"isolatedElementHighlightConfigs",type:"object",optional:!1}],[]),e.registerEnum("Page.AdFrameType",{None:"none",Child:"child",Root:"root"}),e.registerEnum("Page.AdFrameExplanation",{ParentIsAd:"ParentIsAd",CreatedByAdScript:"CreatedByAdScript",MatchedBlockingRule:"MatchedBlockingRule"}),e.registerEnum("Page.SecureContextType",{Secure:"Secure",SecureLocalhost:"SecureLocalhost",InsecureScheme:"InsecureScheme",InsecureAncestor:"InsecureAncestor"}),e.registerEnum("Page.CrossOriginIsolatedContextType",{Isolated:"Isolated",NotIsolated:"NotIsolated",NotIsolatedFeatureDisabled:"NotIsolatedFeatureDisabled"}),e.registerEnum("Page.GatedAPIFeatures",{SharedArrayBuffers:"SharedArrayBuffers",SharedArrayBuffersTransferAllowed:"SharedArrayBuffersTransferAllowed",PerformanceMeasureMemory:"PerformanceMeasureMemory",PerformanceProfile:"PerformanceProfile"}),e.registerEnum("Page.PermissionsPolicyFeature",{Accelerometer:"accelerometer",AmbientLightSensor:"ambient-light-sensor",AttributionReporting:"attribution-reporting",Autoplay:"autoplay",Bluetooth:"bluetooth",BrowsingTopics:"browsing-topics",Camera:"camera",ChDpr:"ch-dpr",ChDeviceMemory:"ch-device-memory",ChDownlink:"ch-downlink",ChEct:"ch-ect",ChPrefersColorScheme:"ch-prefers-color-scheme",ChPrefersReducedMotion:"ch-prefers-reduced-motion",ChRtt:"ch-rtt",ChSaveData:"ch-save-data",ChUa:"ch-ua",ChUaArch:"ch-ua-arch",ChUaBitness:"ch-ua-bitness",ChUaPlatform:"ch-ua-platform",ChUaModel:"ch-ua-model",ChUaMobile:"ch-ua-mobile",ChUaFullVersion:"ch-ua-full-version",ChUaFullVersionList:"ch-ua-full-version-list",ChUaPlatformVersion:"ch-ua-platform-version",ChUaWow64:"ch-ua-wow64",ChViewportHeight:"ch-viewport-height",ChViewportWidth:"ch-viewport-width",ChWidth:"ch-width",ClipboardRead:"clipboard-read",ClipboardWrite:"clipboard-write",ComputePressure:"compute-pressure",CrossOriginIsolated:"cross-origin-isolated",DirectSockets:"direct-sockets",DisplayCapture:"display-capture",DocumentDomain:"document-domain",EncryptedMedia:"encrypted-media",ExecutionWhileOutOfViewport:"execution-while-out-of-viewport",ExecutionWhileNotRendered:"execution-while-not-rendered",FocusWithoutUserActivation:"focus-without-user-activation",Fullscreen:"fullscreen",Frobulate:"frobulate",Gamepad:"gamepad",Geolocation:"geolocation",Gyroscope:"gyroscope",Hid:"hid",IdentityCredentialsGet:"identity-credentials-get",IdleDetection:"idle-detection",InterestCohort:"interest-cohort",JoinAdInterestGroup:"join-ad-interest-group",KeyboardMap:"keyboard-map",LocalFonts:"local-fonts",Magnetometer:"magnetometer",Microphone:"microphone",Midi:"midi",OtpCredentials:"otp-credentials",Payment:"payment",PictureInPicture:"picture-in-picture",PrivateAggregation:"private-aggregation",PrivateStateTokenIssuance:"private-state-token-issuance",PrivateStateTokenRedemption:"private-state-token-redemption",PublickeyCredentialsGet:"publickey-credentials-get",RunAdAuction:"run-ad-auction",ScreenWakeLock:"screen-wake-lock",Serial:"serial",SharedAutofill:"shared-autofill",SharedStorage:"shared-storage",SharedStorageSelectUrl:"shared-storage-select-url",SmartCard:"smart-card",StorageAccess:"storage-access",SyncXhr:"sync-xhr",Unload:"unload",Usb:"usb",VerticalScroll:"vertical-scroll",WebShare:"web-share",WindowManagement:"window-management",WindowPlacement:"window-placement",XrSpatialTracking:"xr-spatial-tracking"}),e.registerEnum("Page.PermissionsPolicyBlockReason",{Header:"Header",IframeAttribute:"IframeAttribute",InFencedFrameTree:"InFencedFrameTree",InIsolatedApp:"InIsolatedApp"}),e.registerEnum("Page.OriginTrialTokenStatus",{Success:"Success",NotSupported:"NotSupported",Insecure:"Insecure",Expired:"Expired",WrongOrigin:"WrongOrigin",InvalidSignature:"InvalidSignature",Malformed:"Malformed",WrongVersion:"WrongVersion",FeatureDisabled:"FeatureDisabled",TokenDisabled:"TokenDisabled",FeatureDisabledForUser:"FeatureDisabledForUser",UnknownTrial:"UnknownTrial"}),e.registerEnum("Page.OriginTrialStatus",{Enabled:"Enabled",ValidTokenNotProvided:"ValidTokenNotProvided",OSNotSupported:"OSNotSupported",TrialNotAllowed:"TrialNotAllowed"}),e.registerEnum("Page.OriginTrialUsageRestriction",{None:"None",Subset:"Subset"}),e.registerEnum("Page.TransitionType",{Link:"link",Typed:"typed",Address_bar:"address_bar",Auto_bookmark:"auto_bookmark",Auto_subframe:"auto_subframe",Manual_subframe:"manual_subframe",Generated:"generated",Auto_toplevel:"auto_toplevel",Form_submit:"form_submit",Reload:"reload",Keyword:"keyword",Keyword_generated:"keyword_generated",Other:"other"}),e.registerEnum("Page.DialogType",{Alert:"alert",Confirm:"confirm",Prompt:"prompt",Beforeunload:"beforeunload"}),e.registerEnum("Page.ClientNavigationReason",{FormSubmissionGet:"formSubmissionGet",FormSubmissionPost:"formSubmissionPost",HttpHeaderRefresh:"httpHeaderRefresh",ScriptInitiated:"scriptInitiated",MetaTagRefresh:"metaTagRefresh",PageBlockInterstitial:"pageBlockInterstitial",Reload:"reload",AnchorClick:"anchorClick"}),e.registerEnum("Page.ClientNavigationDisposition",{CurrentTab:"currentTab",NewTab:"newTab",NewWindow:"newWindow",Download:"download"}),e.registerEnum("Page.ReferrerPolicy",{NoReferrer:"noReferrer",NoReferrerWhenDowngrade:"noReferrerWhenDowngrade",Origin:"origin",OriginWhenCrossOrigin:"originWhenCrossOrigin",SameOrigin:"sameOrigin",StrictOrigin:"strictOrigin",StrictOriginWhenCrossOrigin:"strictOriginWhenCrossOrigin",UnsafeUrl:"unsafeUrl"}),e.registerEnum("Page.AutoResponseMode",{None:"none",AutoAccept:"autoAccept",AutoReject:"autoReject",AutoOptOut:"autoOptOut"}),e.registerEnum("Page.NavigationType",{Navigation:"Navigation",BackForwardCacheRestore:"BackForwardCacheRestore"}),e.registerEnum("Page.BackForwardCacheNotRestoredReason",{NotPrimaryMainFrame:"NotPrimaryMainFrame",BackForwardCacheDisabled:"BackForwardCacheDisabled",RelatedActiveContentsExist:"RelatedActiveContentsExist",HTTPStatusNotOK:"HTTPStatusNotOK",SchemeNotHTTPOrHTTPS:"SchemeNotHTTPOrHTTPS",Loading:"Loading",WasGrantedMediaAccess:"WasGrantedMediaAccess",DisableForRenderFrameHostCalled:"DisableForRenderFrameHostCalled",DomainNotAllowed:"DomainNotAllowed",HTTPMethodNotGET:"HTTPMethodNotGET",SubframeIsNavigating:"SubframeIsNavigating",Timeout:"Timeout",CacheLimit:"CacheLimit",JavaScriptExecution:"JavaScriptExecution",RendererProcessKilled:"RendererProcessKilled",RendererProcessCrashed:"RendererProcessCrashed",SchedulerTrackedFeatureUsed:"SchedulerTrackedFeatureUsed",ConflictingBrowsingInstance:"ConflictingBrowsingInstance",CacheFlushed:"CacheFlushed",ServiceWorkerVersionActivation:"ServiceWorkerVersionActivation",SessionRestored:"SessionRestored",ServiceWorkerPostMessage:"ServiceWorkerPostMessage",EnteredBackForwardCacheBeforeServiceWorkerHostAdded:"EnteredBackForwardCacheBeforeServiceWorkerHostAdded",RenderFrameHostReused_SameSite:"RenderFrameHostReused_SameSite",RenderFrameHostReused_CrossSite:"RenderFrameHostReused_CrossSite",ServiceWorkerClaim:"ServiceWorkerClaim",IgnoreEventAndEvict:"IgnoreEventAndEvict",HaveInnerContents:"HaveInnerContents",TimeoutPuttingInCache:"TimeoutPuttingInCache",BackForwardCacheDisabledByLowMemory:"BackForwardCacheDisabledByLowMemory",BackForwardCacheDisabledByCommandLine:"BackForwardCacheDisabledByCommandLine",NetworkRequestDatAPIpeDrainedAsBytesConsumer:"NetworkRequestDatapipeDrainedAsBytesConsumer",NetworkRequestRedirected:"NetworkRequestRedirected",NetworkRequestTimeout:"NetworkRequestTimeout",NetworkExceedsBufferLimit:"NetworkExceedsBufferLimit",NavigationCancelledWhileRestoring:"NavigationCancelledWhileRestoring",NotMostRecentNavigationEntry:"NotMostRecentNavigationEntry",BackForwardCacheDisabledForPrerender:"BackForwardCacheDisabledForPrerender",UserAgentOverrideDiffers:"UserAgentOverrideDiffers",ForegroundCacheLimit:"ForegroundCacheLimit",BrowsingInstanceNotSwapped:"BrowsingInstanceNotSwapped",BackForwardCacheDisabledForDelegate:"BackForwardCacheDisabledForDelegate",UnloadHandlerExistsInMainFrame:"UnloadHandlerExistsInMainFrame",UnloadHandlerExistsInSubFrame:"UnloadHandlerExistsInSubFrame",ServiceWorkerUnregistration:"ServiceWorkerUnregistration",CacheControlNoStore:"CacheControlNoStore",CacheControlNoStoreCookieModified:"CacheControlNoStoreCookieModified",CacheControlNoStoreHTTPOnlyCookieModified:"CacheControlNoStoreHTTPOnlyCookieModified",NoResponseHead:"NoResponseHead",Unknown:"Unknown",ActivationNavigationsDisallowedForBug1234857:"ActivationNavigationsDisallowedForBug1234857",ErrorDocument:"ErrorDocument",FencedFramesEmbedder:"FencedFramesEmbedder",CookieDisabled:"CookieDisabled",WebSocket:"WebSocket",WebTransport:"WebTransport",WebRTC:"WebRTC",MainResourceHasCacheControlNoStore:"MainResourceHasCacheControlNoStore",MainResourceHasCacheControlNoCache:"MainResourceHasCacheControlNoCache",SubresourceHasCacheControlNoStore:"SubresourceHasCacheControlNoStore",SubresourceHasCacheControlNoCache:"SubresourceHasCacheControlNoCache",ContainsPlugins:"ContainsPlugins",DocumentLoaded:"DocumentLoaded",DedicatedWorkerOrWorklet:"DedicatedWorkerOrWorklet",OutstandingNetworkRequestOthers:"OutstandingNetworkRequestOthers",OutstandingIndexedDBTransaction:"OutstandingIndexedDBTransaction",RequestedMIDIPermission:"RequestedMIDIPermission",RequestedAudioCapturePermission:"RequestedAudioCapturePermission",RequestedVideoCapturePermission:"RequestedVideoCapturePermission",RequestedBackForwardCacheBlockedSensors:"RequestedBackForwardCacheBlockedSensors",RequestedBackgroundWorkPermission:"RequestedBackgroundWorkPermission",BroadcastChannel:"BroadcastChannel",IndexedDBConnection:"IndexedDBConnection",WebXR:"WebXR",SharedWorker:"SharedWorker",WebLocks:"WebLocks",WebHID:"WebHID",WebShare:"WebShare",RequestedStorageAccessGrant:"RequestedStorageAccessGrant",WebNfc:"WebNfc",OutstandingNetworkRequestFetch:"OutstandingNetworkRequestFetch",OutstandingNetworkRequestXHR:"OutstandingNetworkRequestXHR",AppBanner:"AppBanner",Printing:"Printing",WebDatabase:"WebDatabase",PictureInPicture:"PictureInPicture",Portal:"Portal",SpeechRecognizer:"SpeechRecognizer",IdleManager:"IdleManager",PaymentManager:"PaymentManager",SpeechSynthesis:"SpeechSynthesis",KeyboardLock:"KeyboardLock",WebOTPService:"WebOTPService",OutstandingNetworkRequestDirectSocket:"OutstandingNetworkRequestDirectSocket",InjectedJavascript:"InjectedJavascript",InjectedStyleSheet:"InjectedStyleSheet",KeepaliveRequest:"KeepaliveRequest",IndexedDBEvent:"IndexedDBEvent",Dummy:"Dummy",JsNetworkRequestReceivedCacheControlNoStoreResource:"JsNetworkRequestReceivedCacheControlNoStoreResource",WebRTCSticky:"WebRTCSticky",WebTransportSticky:"WebTransportSticky",WebSocketSticky:"WebSocketSticky",ContentSecurityHandler:"ContentSecurityHandler",ContentWebAuthenticationAPI:"ContentWebAuthenticationAPI",ContentFileChooser:"ContentFileChooser",ContentSerial:"ContentSerial",ContentFileSystemAccess:"ContentFileSystemAccess",ContentMediaDevicesDispatcherHost:"ContentMediaDevicesDispatcherHost",ContentWebBluetooth:"ContentWebBluetooth",ContentWebUSB:"ContentWebUSB",ContentMediaSessionService:"ContentMediaSessionService",ContentScreenReader:"ContentScreenReader",EmbedderPopupBlockerTabHelper:"EmbedderPopupBlockerTabHelper",EmbedderSafeBrowsingTriggeredPopupBlocker:"EmbedderSafeBrowsingTriggeredPopupBlocker",EmbedderSafeBrowsingThreatDetails:"EmbedderSafeBrowsingThreatDetails",EmbedderAppBannerManager:"EmbedderAppBannerManager",EmbedderDomDistillerViewerSource:"EmbedderDomDistillerViewerSource",EmbedderDomDistillerSelfDeletingRequestDelegate:"EmbedderDomDistillerSelfDeletingRequestDelegate",EmbedderOomInterventionTabHelper:"EmbedderOomInterventionTabHelper",EmbedderOfflinePage:"EmbedderOfflinePage",EmbedderChromePasswordManagerClientBindCredentialManager:"EmbedderChromePasswordManagerClientBindCredentialManager",EmbedderPermissionRequestManager:"EmbedderPermissionRequestManager",EmbedderModalDialog:"EmbedderModalDialog",EmbedderExtensions:"EmbedderExtensions",EmbedderExtensionMessaging:"EmbedderExtensionMessaging",EmbedderExtensionMessagingForOpenPort:"EmbedderExtensionMessagingForOpenPort",EmbedderExtensionSentMessageToCachedFrame:"EmbedderExtensionSentMessageToCachedFrame"}),e.registerEnum("Page.BackForwardCacheNotRestoredReasonType",{SupportPending:"SupportPending",PageSupportNeeded:"PageSupportNeeded",Circumstantial:"Circumstantial"}),e.registerEvent("Page.domContentEventFired",["timestamp"]),e.registerEnum("Page.FileChooserOpenedEventMode",{SelectSingle:"selectSingle",SelectMultiple:"selectMultiple"}),e.registerEvent("Page.fileChooserOpened",["frameId","mode","backendNodeId"]),e.registerEvent("Page.frameAttached",["frameId","parentFrameId","stack"]),e.registerEvent("Page.frameClearedScheduledNavigation",["frameId"]),e.registerEnum("Page.FrameDetachedEventReason",{Remove:"remove",Swap:"swap"}),e.registerEvent("Page.frameDetached",["frameId","reason"]),e.registerEvent("Page.frameNavigated",["frame","type"]),e.registerEvent("Page.documentOpened",["frame"]),e.registerEvent("Page.frameResized",[]),e.registerEvent("Page.frameRequestedNavigation",["frameId","reason","url","disposition"]),e.registerEvent("Page.frameScheduledNavigation",["frameId","delay","reason","url"]),e.registerEvent("Page.frameStartedLoading",["frameId"]),e.registerEvent("Page.frameStoppedLoading",["frameId"]),e.registerEvent("Page.downloadWillBegin",["frameId","guid","url","suggestedFilename"]),e.registerEnum("Page.DownloadProgressEventState",{InProgress:"inProgress",Completed:"completed",Canceled:"canceled"}),e.registerEvent("Page.downloadProgress",["guid","totalBytes","receivedBytes","state"]),e.registerEvent("Page.interstitialHidden",[]),e.registerEvent("Page.interstitialShown",[]),e.registerEvent("Page.javascriptDialogClosed",["result","userInput"]),e.registerEvent("Page.javascriptDialogOpening",["url","message","type","hasBrowserHandler","defaultPrompt"]),e.registerEvent("Page.lifecycleEvent",["frameId","loaderId","name","timestamp"]),e.registerEvent("Page.backForwardCacheNotUsed",["loaderId","frameId","notRestoredExplanations","notRestoredExplanationsTree"]),e.registerEvent("Page.loadEventFired",["timestamp"]),e.registerEvent("Page.navigatedWithinDocument",["frameId","url"]),e.registerEvent("Page.screencastFrame",["data","metadata","sessionId"]),e.registerEvent("Page.screencastVisibilityChanged",["visible"]),e.registerEvent("Page.windowOpen",["url","windowName","windowFeatures","userGesture"]),e.registerEvent("Page.compilationCacheProduced",["url","data"]),e.registerCommand("Page.addScriptToEvaluateOnLoad",[{name:"scriptSource",type:"string",optional:!1}],["identifier"]),e.registerCommand("Page.addScriptToEvaluateOnNewDocument",[{name:"source",type:"string",optional:!1},{name:"worldName",type:"string",optional:!0},{name:"includeCommandLineAPI",type:"boolean",optional:!0}],["identifier"]),e.registerCommand("Page.bringToFront",[],[]),e.registerEnum("Page.CaptureScreenshotRequestFormat",{Jpeg:"jpeg",Png:"png",Webp:"webp"}),e.registerCommand("Page.captureScreenshot",[{name:"format",type:"string",optional:!0},{name:"quality",type:"number",optional:!0},{name:"clip",type:"object",optional:!0},{name:"fromSurface",type:"boolean",optional:!0},{name:"captureBeyondViewport",type:"boolean",optional:!0},{name:"optimizeForSpeed",type:"boolean",optional:!0}],["data"]),e.registerEnum("Page.CaptureSnapshotRequestFormat",{MHTML:"mhtml"}),e.registerCommand("Page.captureSnapshot",[{name:"format",type:"string",optional:!0}],["data"]),e.registerCommand("Page.clearDeviceMetricsOverride",[],[]),e.registerCommand("Page.clearDeviceOrientationOverride",[],[]),e.registerCommand("Page.clearGeolocationOverride",[],[]),e.registerCommand("Page.createIsolatedWorld",[{name:"frameId",type:"string",optional:!1},{name:"worldName",type:"string",optional:!0},{name:"grantUniveralAccess",type:"boolean",optional:!0}],["executionContextId"]),e.registerCommand("Page.deleteCookie",[{name:"cookieName",type:"string",optional:!1},{name:"url",type:"string",optional:!1}],[]),e.registerCommand("Page.disable",[],[]),e.registerCommand("Page.enable",[],[]),e.registerCommand("Page.getAppManifest",[],["url","errors","data","parsed"]),e.registerCommand("Page.getInstallabilityErrors",[],["installabilityErrors"]),e.registerCommand("Page.getManifestIcons",[],["primaryIcon"]),e.registerCommand("Page.getAppId",[],["appId","recommendedId"]),e.registerCommand("Page.getAdScriptId",[{name:"frameId",type:"string",optional:!1}],["adScriptId"]),e.registerCommand("Page.getCookies",[],["cookies"]),e.registerCommand("Page.getFrameTree",[],["frameTree"]),e.registerCommand("Page.getLayoutMetrics",[],["layoutViewport","visualViewport","contentSize","cssLayoutViewport","cssVisualViewport","cssContentSize"]),e.registerCommand("Page.getNavigationHistory",[],["currentIndex","entries"]),e.registerCommand("Page.resetNavigationHistory",[],[]),e.registerCommand("Page.getResourceContent",[{name:"frameId",type:"string",optional:!1},{name:"url",type:"string",optional:!1}],["content","base64Encoded"]),e.registerCommand("Page.getResourceTree",[],["frameTree"]),e.registerCommand("Page.handleJavaScriptDialog",[{name:"accept",type:"boolean",optional:!1},{name:"promptText",type:"string",optional:!0}],[]),e.registerCommand("Page.navigate",[{name:"url",type:"string",optional:!1},{name:"referrer",type:"string",optional:!0},{name:"transitionType",type:"string",optional:!0},{name:"frameId",type:"string",optional:!0},{name:"referrerPolicy",type:"string",optional:!0}],["frameId","loaderId","errorText"]),e.registerCommand("Page.navigateToHistoryEntry",[{name:"entryId",type:"number",optional:!1}],[]),e.registerEnum("Page.PrintToPDFRequestTransferMode",{ReturnAsBase64:"ReturnAsBase64",ReturnAsStream:"ReturnAsStream"}),e.registerCommand("Page.printToPDF",[{name:"landscape",type:"boolean",optional:!0},{name:"displayHeaderFooter",type:"boolean",optional:!0},{name:"printBackground",type:"boolean",optional:!0},{name:"scale",type:"number",optional:!0},{name:"paperWidth",type:"number",optional:!0},{name:"paperHeight",type:"number",optional:!0},{name:"marginTop",type:"number",optional:!0},{name:"marginBottom",type:"number",optional:!0},{name:"marginLeft",type:"number",optional:!0},{name:"marginRight",type:"number",optional:!0},{name:"pageRanges",type:"string",optional:!0},{name:"headerTemplate",type:"string",optional:!0},{name:"footerTemplate",type:"string",optional:!0},{name:"preferCSSPageSize",type:"boolean",optional:!0},{name:"transferMode",type:"string",optional:!0}],["data","stream"]),e.registerCommand("Page.reload",[{name:"ignoreCache",type:"boolean",optional:!0},{name:"scriptToEvaluateOnLoad",type:"string",optional:!0}],[]),e.registerCommand("Page.removeScriptToEvaluateOnLoad",[{name:"identifier",type:"string",optional:!1}],[]),e.registerCommand("Page.removeScriptToEvaluateOnNewDocument",[{name:"identifier",type:"string",optional:!1}],[]),e.registerCommand("Page.screencastFrameAck",[{name:"sessionId",type:"number",optional:!1}],[]),e.registerCommand("Page.searchInResource",[{name:"frameId",type:"string",optional:!1},{name:"url",type:"string",optional:!1},{name:"query",type:"string",optional:!1},{name:"caseSensitive",type:"boolean",optional:!0},{name:"isRegex",type:"boolean",optional:!0}],["result"]),e.registerCommand("Page.setAdBlockingEnabled",[{name:"enabled",type:"boolean",optional:!1}],[]),e.registerCommand("Page.setBypassCSP",[{name:"enabled",type:"boolean",optional:!1}],[]),e.registerCommand("Page.getPermissionsPolicyState",[{name:"frameId",type:"string",optional:!1}],["states"]),e.registerCommand("Page.getOriginTrials",[{name:"frameId",type:"string",optional:!1}],["originTrials"]),e.registerCommand("Page.setDeviceMetricsOverride",[{name:"width",type:"number",optional:!1},{name:"height",type:"number",optional:!1},{name:"deviceScaleFactor",type:"number",optional:!1},{name:"mobile",type:"boolean",optional:!1},{name:"scale",type:"number",optional:!0},{name:"screenWidth",type:"number",optional:!0},{name:"screenHeight",type:"number",optional:!0},{name:"positionX",type:"number",optional:!0},{name:"positionY",type:"number",optional:!0},{name:"dontSetVisibleSize",type:"boolean",optional:!0},{name:"screenOrientation",type:"object",optional:!0},{name:"viewport",type:"object",optional:!0}],[]),e.registerCommand("Page.setDeviceOrientationOverride",[{name:"alpha",type:"number",optional:!1},{name:"beta",type:"number",optional:!1},{name:"gamma",type:"number",optional:!1}],[]),e.registerCommand("Page.setFontFamilies",[{name:"fontFamilies",type:"object",optional:!1},{name:"forScripts",type:"object",optional:!0}],[]),e.registerCommand("Page.setFontSizes",[{name:"fontSizes",type:"object",optional:!1}],[]),e.registerCommand("Page.setDocumentContent",[{name:"frameId",type:"string",optional:!1},{name:"html",type:"string",optional:!1}],[]),e.registerEnum("Page.SetDownloadBehaviorRequestBehavior",{Deny:"deny",Allow:"allow",Default:"default"}),e.registerCommand("Page.setDownloadBehavior",[{name:"behavior",type:"string",optional:!1},{name:"downloadPath",type:"string",optional:!0}],[]),e.registerCommand("Page.setGeolocationOverride",[{name:"latitude",type:"number",optional:!0},{name:"longitude",type:"number",optional:!0},{name:"accuracy",type:"number",optional:!0}],[]),e.registerCommand("Page.setLifecycleEventsEnabled",[{name:"enabled",type:"boolean",optional:!1}],[]),e.registerEnum("Page.SetTouchEmulationEnabledRequestConfiguration",{Mobile:"mobile",Desktop:"desktop"}),e.registerCommand("Page.setTouchEmulationEnabled",[{name:"enabled",type:"boolean",optional:!1},{name:"configuration",type:"string",optional:!0}],[]),e.registerEnum("Page.StartScreencastRequestFormat",{Jpeg:"jpeg",Png:"png"}),e.registerCommand("Page.startScreencast",[{name:"format",type:"string",optional:!0},{name:"quality",type:"number",optional:!0},{name:"maxWidth",type:"number",optional:!0},{name:"maxHeight",type:"number",optional:!0},{name:"everyNthFrame",type:"number",optional:!0}],[]),e.registerCommand("Page.stopLoading",[],[]),e.registerCommand("Page.crash",[],[]),e.registerCommand("Page.close",[],[]),e.registerEnum("Page.SetWebLifecycleStateRequestState",{Frozen:"frozen",Active:"active"}),e.registerCommand("Page.setWebLifecycleState",[{name:"state",type:"string",optional:!1}],[]),e.registerCommand("Page.stopScreencast",[],[]),e.registerCommand("Page.produceCompilationCache",[{name:"scripts",type:"object",optional:!1}],[]),e.registerCommand("Page.addCompilationCache",[{name:"url",type:"string",optional:!1},{name:"data",type:"string",optional:!1}],[]),e.registerCommand("Page.clearCompilationCache",[],[]),e.registerCommand("Page.setSPCTransactionMode",[{name:"mode",type:"string",optional:!1}],[]),e.registerCommand("Page.setRPHRegistrationMode",[{name:"mode",type:"string",optional:!1}],[]),e.registerCommand("Page.generateTestReport",[{name:"message",type:"string",optional:!1},{name:"group",type:"string",optional:!0}],[]),e.registerCommand("Page.waitForDebugger",[],[]),e.registerCommand("Page.setInterceptFileChooserDialog",[{name:"enabled",type:"boolean",optional:!1}],[]),e.registerCommand("Page.setPrerenderingAllowed",[{name:"isAllowed",type:"boolean",optional:!1}],[]),e.registerEvent("Performance.metrics",["metrics","title"]),e.registerCommand("Performance.disable",[],[]),e.registerEnum("Performance.EnableRequestTimeDomain",{TimeTicks:"timeTicks",ThreadTicks:"threadTicks"}),e.registerCommand("Performance.enable",[{name:"timeDomain",type:"string",optional:!0}],[]),e.registerEnum("Performance.SetTimeDomainRequestTimeDomain",{TimeTicks:"timeTicks",ThreadTicks:"threadTicks"}),e.registerCommand("Performance.setTimeDomain",[{name:"timeDomain",type:"string",optional:!1}],[]),e.registerCommand("Performance.getMetrics",[],["metrics"]),e.registerEvent("PerformanceTimeline.timelineEventAdded",["event"]),e.registerCommand("PerformanceTimeline.enable",[{name:"eventTypes",type:"object",optional:!1}],[]),e.registerEnum("Security.MixedContentType",{Blockable:"blockable",OptionallyBlockable:"optionally-blockable",None:"none"}),e.registerEnum("Security.SecurityState",{Unknown:"unknown",Neutral:"neutral",Insecure:"insecure",Secure:"secure",Info:"info",InsecureBroken:"insecure-broken"}),e.registerEnum("Security.SafetyTipStatus",{BadReputation:"badReputation",Lookalike:"lookalike"}),e.registerEnum("Security.CertificateErrorAction",{Continue:"continue",Cancel:"cancel"}),e.registerEvent("Security.certificateError",["eventId","errorType","requestURL"]),e.registerEvent("Security.visibleSecurityStateChanged",["visibleSecurityState"]),e.registerEvent("Security.securityStateChanged",["securityState","schemeIsCryptographic","explanations","insecureContentStatus","summary"]),e.registerCommand("Security.disable",[],[]),e.registerCommand("Security.enable",[],[]),e.registerCommand("Security.setIgnoreCertificateErrors",[{name:"ignore",type:"boolean",optional:!1}],[]),e.registerCommand("Security.handleCertificateError",[{name:"eventId",type:"number",optional:!1},{name:"action",type:"string",optional:!1}],[]),e.registerCommand("Security.setOverrideCertificateErrors",[{name:"override",type:"boolean",optional:!1}],[]),e.registerEnum("ServiceWorker.ServiceWorkerVersionRunningStatus",{Stopped:"stopped",Starting:"starting",Running:"running",Stopping:"stopping"}),e.registerEnum("ServiceWorker.ServiceWorkerVersionStatus",{New:"new",Installing:"installing",Installed:"installed",Activating:"activating",Activated:"activated",Redundant:"redundant"}),e.registerEvent("ServiceWorker.workerErrorReported",["errorMessage"]),e.registerEvent("ServiceWorker.workerRegistrationUpdated",["registrations"]),e.registerEvent("ServiceWorker.workerVersionUpdated",["versions"]),e.registerCommand("ServiceWorker.deliverPushMessage",[{name:"origin",type:"string",optional:!1},{name:"registrationId",type:"string",optional:!1},{name:"data",type:"string",optional:!1}],[]),e.registerCommand("ServiceWorker.disable",[],[]),e.registerCommand("ServiceWorker.dispatchSyncEvent",[{name:"origin",type:"string",optional:!1},{name:"registrationId",type:"string",optional:!1},{name:"tag",type:"string",optional:!1},{name:"lastChance",type:"boolean",optional:!1}],[]),e.registerCommand("ServiceWorker.dispatchPeriodicSyncEvent",[{name:"origin",type:"string",optional:!1},{name:"registrationId",type:"string",optional:!1},{name:"tag",type:"string",optional:!1}],[]),e.registerCommand("ServiceWorker.enable",[],[]),e.registerCommand("ServiceWorker.inspectWorker",[{name:"versionId",type:"string",optional:!1}],[]),e.registerCommand("ServiceWorker.setForceUpdateOnPageLoad",[{name:"forceUpdateOnPageLoad",type:"boolean",optional:!1}],[]),e.registerCommand("ServiceWorker.skipWaiting",[{name:"scopeURL",type:"string",optional:!1}],[]),e.registerCommand("ServiceWorker.startWorker",[{name:"scopeURL",type:"string",optional:!1}],[]),e.registerCommand("ServiceWorker.stopAllWorkers",[],[]),e.registerCommand("ServiceWorker.stopWorker",[{name:"versionId",type:"string",optional:!1}],[]),e.registerCommand("ServiceWorker.unregister",[{name:"scopeURL",type:"string",optional:!1}],[]),e.registerCommand("ServiceWorker.updateRegistration",[{name:"scopeURL",type:"string",optional:!1}],[]),e.registerEnum("Storage.StorageType",{Appcache:"appcache",Cookies:"cookies",File_systems:"file_systems",Indexeddb:"indexeddb",Local_storage:"local_storage",Shader_cache:"shader_cache",Websql:"websql",Service_workers:"service_workers",Cache_storage:"cache_storage",Interest_groups:"interest_groups",Shared_storage:"shared_storage",Storage_buckets:"storage_buckets",All:"all",Other:"other"}),e.registerEnum("Storage.InterestGroupAccessType",{Join:"join",Leave:"leave",Update:"update",Loaded:"loaded",Bid:"bid",Win:"win"}),e.registerEnum("Storage.SharedStorageAccessType",{DocumentAddModule:"documentAddModule",DocumentSelectURL:"documentSelectURL",DocumentRun:"documentRun",DocumentSet:"documentSet",DocumentAppend:"documentAppend",DocumentDelete:"documentDelete",DocumentClear:"documentClear",WorkletSet:"workletSet",WorkletAppend:"workletAppend",WorkletDelete:"workletDelete",WorkletClear:"workletClear",WorkletGet:"workletGet",WorkletKeys:"workletKeys",WorkletEntries:"workletEntries",WorkletLength:"workletLength",WorkletRemainingBudget:"workletRemainingBudget"}),e.registerEnum("Storage.StorageBucketsDurability",{Relaxed:"relaxed",Strict:"strict"}),e.registerEvent("Storage.cacheStorageContentUpdated",["origin","storageKey","bucketId","cacheName"]),e.registerEvent("Storage.cacheStorageListUpdated",["origin","storageKey","bucketId"]),e.registerEvent("Storage.indexedDBContentUpdated",["origin","storageKey","bucketId","databaseName","objectStoreName"]),e.registerEvent("Storage.indexedDBListUpdated",["origin","storageKey","bucketId"]),e.registerEvent("Storage.interestGroupAccessed",["accessTime","type","ownerOrigin","name"]),e.registerEvent("Storage.sharedStorageAccessed",["accessTime","type","mainFrameId","ownerOrigin","params"]),e.registerEvent("Storage.storageBucketCreatedOrUpdated",["bucketInfo"]),e.registerEvent("Storage.storageBucketDeleted",["bucketId"]),e.registerCommand("Storage.getStorageKeyForFrame",[{name:"frameId",type:"string",optional:!1}],["storageKey"]),e.registerCommand("Storage.clearDataForOrigin",[{name:"origin",type:"string",optional:!1},{name:"storageTypes",type:"string",optional:!1}],[]),e.registerCommand("Storage.clearDataForStorageKey",[{name:"storageKey",type:"string",optional:!1},{name:"storageTypes",type:"string",optional:!1}],[]),e.registerCommand("Storage.getCookies",[{name:"browserContextId",type:"string",optional:!0}],["cookies"]),e.registerCommand("Storage.setCookies",[{name:"cookies",type:"object",optional:!1},{name:"browserContextId",type:"string",optional:!0}],[]),e.registerCommand("Storage.clearCookies",[{name:"browserContextId",type:"string",optional:!0}],[]),e.registerCommand("Storage.getUsageAndQuota",[{name:"origin",type:"string",optional:!1}],["usage","quota","overrideActive","usageBreakdown"]),e.registerCommand("Storage.overrideQuotaForOrigin",[{name:"origin",type:"string",optional:!1},{name:"quotaSize",type:"number",optional:!0}],[]),e.registerCommand("Storage.trackCacheStorageForOrigin",[{name:"origin",type:"string",optional:!1}],[]),e.registerCommand("Storage.trackCacheStorageForStorageKey",[{name:"storageKey",type:"string",optional:!1}],[]),e.registerCommand("Storage.trackIndexedDBForOrigin",[{name:"origin",type:"string",optional:!1}],[]),e.registerCommand("Storage.trackIndexedDBForStorageKey",[{name:"storageKey",type:"string",optional:!1}],[]),e.registerCommand("Storage.untrackCacheStorageForOrigin",[{name:"origin",type:"string",optional:!1}],[]),e.registerCommand("Storage.untrackCacheStorageForStorageKey",[{name:"storageKey",type:"string",optional:!1}],[]),e.registerCommand("Storage.untrackIndexedDBForOrigin",[{name:"origin",type:"string",optional:!1}],[]),e.registerCommand("Storage.untrackIndexedDBForStorageKey",[{name:"storageKey",type:"string",optional:!1}],[]),e.registerCommand("Storage.getTrustTokens",[],["tokens"]),e.registerCommand("Storage.clearTrustTokens",[{name:"issuerOrigin",type:"string",optional:!1}],["didDeleteTokens"]),e.registerCommand("Storage.getInterestGroupDetails",[{name:"ownerOrigin",type:"string",optional:!1},{name:"name",type:"string",optional:!1}],["details"]),e.registerCommand("Storage.setInterestGroupTracking",[{name:"enable",type:"boolean",optional:!1}],[]),e.registerCommand("Storage.getSharedStorageMetadata",[{name:"ownerOrigin",type:"string",optional:!1}],["metadata"]),e.registerCommand("Storage.getSharedStorageEntries",[{name:"ownerOrigin",type:"string",optional:!1}],["entries"]),e.registerCommand("Storage.setSharedStorageEntry",[{name:"ownerOrigin",type:"string",optional:!1},{name:"key",type:"string",optional:!1},{name:"value",type:"string",optional:!1},{name:"ignoreIfPresent",type:"boolean",optional:!0}],[]),e.registerCommand("Storage.deleteSharedStorageEntry",[{name:"ownerOrigin",type:"string",optional:!1},{name:"key",type:"string",optional:!1}],[]),e.registerCommand("Storage.clearSharedStorageEntries",[{name:"ownerOrigin",type:"string",optional:!1}],[]),e.registerCommand("Storage.resetSharedStorageBudget",[{name:"ownerOrigin",type:"string",optional:!1}],[]),e.registerCommand("Storage.setSharedStorageTracking",[{name:"enable",type:"boolean",optional:!1}],[]),e.registerCommand("Storage.setStorageBucketTracking",[{name:"storageKey",type:"string",optional:!1},{name:"enable",type:"boolean",optional:!1}],[]),e.registerCommand("Storage.deleteStorageBucket",[{name:"bucket",type:"object",optional:!1}],[]),e.registerCommand("Storage.runBounceTrackingMitigations",[],["deletedSites"]),e.registerEnum("SystemInfo.SubsamplingFormat",{Yuv420:"yuv420",Yuv422:"yuv422",Yuv444:"yuv444"}),e.registerEnum("SystemInfo.ImageType",{Jpeg:"jpeg",Webp:"webp",Unknown:"unknown"}),e.registerCommand("SystemInfo.getInfo",[],["gpu","modelName","modelVersion","commandLine"]),e.registerCommand("SystemInfo.getFeatureState",[{name:"featureState",type:"string",optional:!1}],["featureEnabled"]),e.registerCommand("SystemInfo.getProcessInfo",[],["processInfo"]),e.registerEvent("Target.attachedToTarget",["sessionId","targetInfo","waitingForDebugger"]),e.registerEvent("Target.detachedFromTarget",["sessionId","targetId"]),e.registerEvent("Target.receivedMessageFromTarget",["sessionId","message","targetId"]),e.registerEvent("Target.targetCreated",["targetInfo"]),e.registerEvent("Target.targetDestroyed",["targetId"]),e.registerEvent("Target.targetCrashed",["targetId","status","errorCode"]),e.registerEvent("Target.targetInfoChanged",["targetInfo"]),e.registerCommand("Target.activateTarget",[{name:"targetId",type:"string",optional:!1}],[]),e.registerCommand("Target.attachToTarget",[{name:"targetId",type:"string",optional:!1},{name:"flatten",type:"boolean",optional:!0}],["sessionId"]),e.registerCommand("Target.attachToBrowserTarget",[],["sessionId"]),e.registerCommand("Target.closeTarget",[{name:"targetId",type:"string",optional:!1}],["success"]),e.registerCommand("Target.exposeDevToolsProtocol",[{name:"targetId",type:"string",optional:!1},{name:"bindingName",type:"string",optional:!0}],[]),e.registerCommand("Target.createBrowserContext",[{name:"disposeOnDetach",type:"boolean",optional:!0},{name:"proxyServer",type:"string",optional:!0},{name:"proxyBypassList",type:"string",optional:!0},{name:"originsWithUniversalNetworkAccess",type:"object",optional:!0}],["browserContextId"]),e.registerCommand("Target.getBrowserContexts",[],["browserContextIds"]),e.registerCommand("Target.createTarget",[{name:"url",type:"string",optional:!1},{name:"width",type:"number",optional:!0},{name:"height",type:"number",optional:!0},{name:"browserContextId",type:"string",optional:!0},{name:"enableBeginFrameControl",type:"boolean",optional:!0},{name:"newWindow",type:"boolean",optional:!0},{name:"background",type:"boolean",optional:!0},{name:"forTab",type:"boolean",optional:!0}],["targetId"]),e.registerCommand("Target.detachFromTarget",[{name:"sessionId",type:"string",optional:!0},{name:"targetId",type:"string",optional:!0}],[]),e.registerCommand("Target.disposeBrowserContext",[{name:"browserContextId",type:"string",optional:!1}],[]),e.registerCommand("Target.getTargetInfo",[{name:"targetId",type:"string",optional:!0}],["targetInfo"]),e.registerCommand("Target.getTargets",[{name:"filter",type:"object",optional:!0}],["targetInfos"]),e.registerCommand("Target.sendMessageToTarget",[{name:"message",type:"string",optional:!1},{name:"sessionId",type:"string",optional:!0},{name:"targetId",type:"string",optional:!0}],[]),e.registerCommand("Target.setAutoAttach",[{name:"autoAttach",type:"boolean",optional:!1},{name:"waitForDebuggerOnStart",type:"boolean",optional:!1},{name:"flatten",type:"boolean",optional:!0},{name:"filter",type:"object",optional:!0}],[]),e.registerCommand("Target.autoAttachRelated",[{name:"targetId",type:"string",optional:!1},{name:"waitForDebuggerOnStart",type:"boolean",optional:!1},{name:"filter",type:"object",optional:!0}],[]),e.registerCommand("Target.setDiscoverTargets",[{name:"discover",type:"boolean",optional:!1},{name:"filter",type:"object",optional:!0}],[]),e.registerCommand("Target.setRemoteLocations",[{name:"locations",type:"object",optional:!1}],[]),e.registerEvent("Tethering.accepted",["port","connectionId"]),e.registerCommand("Tethering.bind",[{name:"port",type:"number",optional:!1}],[]),e.registerCommand("Tethering.unbind",[{name:"port",type:"number",optional:!1}],[]),e.registerEnum("Tracing.TraceConfigRecordMode",{RecordUntilFull:"recordUntilFull",RecordContinuously:"recordContinuously",RecordAsMuchAsPossible:"recordAsMuchAsPossible",EchoToConsole:"echoToConsole"}),e.registerEnum("Tracing.StreamFormat",{Json:"json",Proto:"proto"}),e.registerEnum("Tracing.StreamCompression",{None:"none",Gzip:"gzip"}),e.registerEnum("Tracing.MemoryDumpLevelOfDetail",{Background:"background",Light:"light",Detailed:"detailed"}),e.registerEnum("Tracing.TracingBackend",{Auto:"auto",Chrome:"chrome",System:"system"}),e.registerEvent("Tracing.bufferUsage",["percentFull","eventCount","value"]),e.registerEvent("Tracing.dataCollected",["value"]),e.registerEvent("Tracing.tracingComplete",["dataLossOccurred","stream","traceFormat","streamCompression"]),e.registerCommand("Tracing.end",[],[]),e.registerCommand("Tracing.getCategories",[],["categories"]),e.registerCommand("Tracing.recordClockSyncMarker",[{name:"syncId",type:"string",optional:!1}],[]),e.registerCommand("Tracing.requestMemoryDump",[{name:"deterministic",type:"boolean",optional:!0},{name:"levelOfDetail",type:"string",optional:!0}],["dumpGuid","success"]),e.registerEnum("Tracing.StartRequestTransferMode",{ReportEvents:"ReportEvents",ReturnAsStream:"ReturnAsStream"}),e.registerCommand("Tracing.start",[{name:"categories",type:"string",optional:!0},{name:"options",type:"string",optional:!0},{name:"bufferUsageReportingInterval",type:"number",optional:!0},{name:"transferMode",type:"string",optional:!0},{name:"streamFormat",type:"string",optional:!0},{name:"streamCompression",type:"string",optional:!0},{name:"traceConfig",type:"object",optional:!0},{name:"perfettoConfig",type:"string",optional:!0},{name:"tracingBackend",type:"string",optional:!0}],[]),e.registerEnum("Fetch.RequestStage",{Request:"Request",Response:"Response"}),e.registerEnum("Fetch.AuthChallengeSource",{Server:"Server",Proxy:"Proxy"}),e.registerEnum("Fetch.AuthChallengeResponseResponse",{Default:"Default",CancelAuth:"CancelAuth",ProvideCredentials:"ProvideCredentials"}),e.registerEvent("Fetch.requestPaused",["requestId","request","frameId","resourceType","responseErrorReason","responseStatusCode","responseStatusText","responseHeaders","networkId","redirectedRequestId"]),e.registerEvent("Fetch.authRequired",["requestId","request","frameId","resourceType","authChallenge"]),e.registerCommand("Fetch.disable",[],[]),e.registerCommand("Fetch.enable",[{name:"patterns",type:"object",optional:!0},{name:"handleAuthRequests",type:"boolean",optional:!0}],[]),e.registerCommand("Fetch.failRequest",[{name:"requestId",type:"string",optional:!1},{name:"errorReason",type:"string",optional:!1}],[]),e.registerCommand("Fetch.fulfillRequest",[{name:"requestId",type:"string",optional:!1},{name:"responseCode",type:"number",optional:!1},{name:"responseHeaders",type:"object",optional:!0},{name:"binaryResponseHeaders",type:"string",optional:!0},{name:"body",type:"string",optional:!0},{name:"responsePhrase",type:"string",optional:!0}],[]),e.registerCommand("Fetch.continueRequest",[{name:"requestId",type:"string",optional:!1},{name:"url",type:"string",optional:!0},{name:"method",type:"string",optional:!0},{name:"postData",type:"string",optional:!0},{name:"headers",type:"object",optional:!0},{name:"interceptResponse",type:"boolean",optional:!0}],[]),e.registerCommand("Fetch.continueWithAuth",[{name:"requestId",type:"string",optional:!1},{name:"authChallengeResponse",type:"object",optional:!1}],[]),e.registerCommand("Fetch.continueResponse",[{name:"requestId",type:"string",optional:!1},{name:"responseCode",type:"number",optional:!0},{name:"responsePhrase",type:"string",optional:!0},{name:"responseHeaders",type:"object",optional:!0},{name:"binaryResponseHeaders",type:"string",optional:!0}],[]),e.registerCommand("Fetch.getResponseBody",[{name:"requestId",type:"string",optional:!1}],["body","base64Encoded"]),e.registerCommand("Fetch.takeResponseBodyAsStream",[{name:"requestId",type:"string",optional:!1}],["stream"]),e.registerEnum("WebAudio.ContextType",{Realtime:"realtime",Offline:"offline"}),e.registerEnum("WebAudio.ContextState",{Suspended:"suspended",Running:"running",Closed:"closed"}),e.registerEnum("WebAudio.ChannelCountMode",{ClampedMax:"clamped-max",Explicit:"explicit",Max:"max"}),e.registerEnum("WebAudio.ChannelInterpretation",{Discrete:"discrete",Speakers:"speakers"}),e.registerEnum("WebAudio.AutomationRate",{ARate:"a-rate",KRate:"k-rate"}),e.registerEvent("WebAudio.contextCreated",["context"]),e.registerEvent("WebAudio.contextWillBeDestroyed",["contextId"]),e.registerEvent("WebAudio.contextChanged",["context"]),e.registerEvent("WebAudio.audioListenerCreated",["listener"]),e.registerEvent("WebAudio.audioListenerWillBeDestroyed",["contextId","listenerId"]),e.registerEvent("WebAudio.audioNodeCreated",["node"]),e.registerEvent("WebAudio.audioNodeWillBeDestroyed",["contextId","nodeId"]),e.registerEvent("WebAudio.audioParamCreated",["param"]),e.registerEvent("WebAudio.audioParamWillBeDestroyed",["contextId","nodeId","paramId"]),e.registerEvent("WebAudio.nodesConnected",["contextId","sourceId","destinationId","sourceOutputIndex","destinationInputIndex"]),e.registerEvent("WebAudio.nodesDisconnected",["contextId","sourceId","destinationId","sourceOutputIndex","destinationInputIndex"]),e.registerEvent("WebAudio.nodeParamConnected",["contextId","sourceId","destinationId","sourceOutputIndex"]),e.registerEvent("WebAudio.nodeParamDisconnected",["contextId","sourceId","destinationId","sourceOutputIndex"]),e.registerCommand("WebAudio.enable",[],[]),e.registerCommand("WebAudio.disable",[],[]),e.registerCommand("WebAudio.getRealtimeData",[{name:"contextId",type:"string",optional:!1}],["realtimeData"]),e.registerEnum("WebAuthn.AuthenticatorProtocol",{U2f:"u2f",Ctap2:"ctap2"}),e.registerEnum("WebAuthn.Ctap2Version",{Ctap2_0:"ctap2_0",Ctap2_1:"ctap2_1"}),e.registerEnum("WebAuthn.AuthenticatorTransport",{Usb:"usb",Nfc:"nfc",Ble:"ble",Cable:"cable",Internal:"internal"}),e.registerEvent("WebAuthn.credentialAdded",["authenticatorId","credential"]),e.registerEvent("WebAuthn.credentialAsserted",["authenticatorId","credential"]),e.registerCommand("WebAuthn.enable",[{name:"enableUI",type:"boolean",optional:!0}],[]),e.registerCommand("WebAuthn.disable",[],[]),e.registerCommand("WebAuthn.addVirtualAuthenticator",[{name:"options",type:"object",optional:!1}],["authenticatorId"]),e.registerCommand("WebAuthn.setResponseOverrideBits",[{name:"authenticatorId",type:"string",optional:!1},{name:"isBogusSignature",type:"boolean",optional:!0},{name:"isBadUV",type:"boolean",optional:!0},{name:"isBadUP",type:"boolean",optional:!0}],[]),e.registerCommand("WebAuthn.removeVirtualAuthenticator",[{name:"authenticatorId",type:"string",optional:!1}],[]),e.registerCommand("WebAuthn.addCredential",[{name:"authenticatorId",type:"string",optional:!1},{name:"credential",type:"object",optional:!1}],[]),e.registerCommand("WebAuthn.getCredential",[{name:"authenticatorId",type:"string",optional:!1},{name:"credentialId",type:"string",optional:!1}],["credential"]),e.registerCommand("WebAuthn.getCredentials",[{name:"authenticatorId",type:"string",optional:!1}],["credentials"]),e.registerCommand("WebAuthn.removeCredential",[{name:"authenticatorId",type:"string",optional:!1},{name:"credentialId",type:"string",optional:!1}],[]),e.registerCommand("WebAuthn.clearCredentials",[{name:"authenticatorId",type:"string",optional:!1}],[]),e.registerCommand("WebAuthn.setUserVerified",[{name:"authenticatorId",type:"string",optional:!1},{name:"isUserVerified",type:"boolean",optional:!1}],[]),e.registerCommand("WebAuthn.setAutomaticPresenceSimulation",[{name:"authenticatorId",type:"string",optional:!1},{name:"enabled",type:"boolean",optional:!1}],[]),e.registerEnum("Media.PlayerMessageLevel",{Error:"error",Warning:"warning",Info:"info",Debug:"debug"}),e.registerEvent("Media.playerPropertiesChanged",["playerId","properties"]),e.registerEvent("Media.playerEventsAdded",["playerId","events"]),e.registerEvent("Media.playerMessagesLogged",["playerId","messages"]),e.registerEvent("Media.playerErrorsRaised",["playerId","errors"]),e.registerEvent("Media.playersCreated",["players"]),e.registerCommand("Media.enable",[],[]),e.registerCommand("Media.disable",[],[]),e.registerEvent("DeviceAccess.deviceRequestPrompted",["id","devices"]),e.registerCommand("DeviceAccess.enable",[],[]),e.registerCommand("DeviceAccess.disable",[],[]),e.registerCommand("DeviceAccess.selectPrompt",[{name:"id",type:"string",optional:!1},{name:"deviceId",type:"string",optional:!1}],[]),e.registerCommand("DeviceAccess.cancelPrompt",[{name:"id",type:"string",optional:!1}],[]),e.registerEnum("Preload.RuleSetErrorType",{SourceIsNotJsonObject:"SourceIsNotJsonObject",InvalidRulesSkipped:"InvalidRulesSkipped"}),e.registerEnum("Preload.SpeculationAction",{Prefetch:"Prefetch",Prerender:"Prerender"}),e.registerEnum("Preload.SpeculationTargetHint",{Blank:"Blank",Self:"Self"}),e.registerEnum("Preload.PrerenderFinalStatus",{Activated:"Activated",Destroyed:"Destroyed",LowEndDevice:"LowEndDevice",InvalidSchemeRedirect:"InvalidSchemeRedirect",InvalidSchemeNavigation:"InvalidSchemeNavigation",InProgressNavigation:"InProgressNavigation",NavigationRequestBlockedByCsp:"NavigationRequestBlockedByCsp",MainFrameNavigation:"MainFrameNavigation",MojoBinderPolicy:"MojoBinderPolicy",RendererProcessCrashed:"RendererProcessCrashed",RendererProcessKilled:"RendererProcessKilled",Download:"Download",TriggerDestroyed:"TriggerDestroyed",NavigationNotCommitted:"NavigationNotCommitted",NavigationBadHttpStatus:"NavigationBadHttpStatus",ClientCertRequested:"ClientCertRequested",NavigationRequestNetworkError:"NavigationRequestNetworkError",MaxNumOfRunningPrerendersExceeded:"MaxNumOfRunningPrerendersExceeded",CancelAllHostsForTesting:"CancelAllHostsForTesting",DidFailLoad:"DidFailLoad",Stop:"Stop",SslCertificateError:"SslCertificateError",LoginAuthRequested:"LoginAuthRequested",UaChangeRequiresReload:"UaChangeRequiresReload",BlockedByClient:"BlockedByClient",AudioOutputDeviceRequested:"AudioOutputDeviceRequested",MixedContent:"MixedContent",TriggerBackgrounded:"TriggerBackgrounded",EmbedderTriggeredAndCrossOriginRedirected:"EmbedderTriggeredAndCrossOriginRedirected",MemoryLimitExceeded:"MemoryLimitExceeded",FailToGetMemoryUsage:"FailToGetMemoryUsage",DataSaverEnabled:"DataSaverEnabled",HasEffectiveUrl:"HasEffectiveUrl",ActivatedBeforeStarted:"ActivatedBeforeStarted",InactivePageRestriction:"InactivePageRestriction",StartFailed:"StartFailed",TimeoutBackgrounded:"TimeoutBackgrounded",CrossSiteRedirectInInitialNavigation:"CrossSiteRedirectInInitialNavigation",CrossSiteNavigationInInitialNavigation:"CrossSiteNavigationInInitialNavigation",SameSiteCrossOriginRedirectNotOptInInInitialNavigation:"SameSiteCrossOriginRedirectNotOptInInInitialNavigation",SameSiteCrossOriginNavigationNotOptInInInitialNavigation:"SameSiteCrossOriginNavigationNotOptInInInitialNavigation",ActivationNavigationParameterMismatch:"ActivationNavigationParameterMismatch",ActivatedInBackground:"ActivatedInBackground",EmbedderHostDisallowed:"EmbedderHostDisallowed",ActivationNavigationDestroyedBeforeSuccess:"ActivationNavigationDestroyedBeforeSuccess",TabClosedByUserGesture:"TabClosedByUserGesture",TabClosedWithoutUserGesture:"TabClosedWithoutUserGesture",PrimaryMainFrameRendererProcessCrashed:"PrimaryMainFrameRendererProcessCrashed",PrimaryMainFrameRendererProcessKilled:"PrimaryMainFrameRendererProcessKilled",ActivationFramePolicyNotCompatible:"ActivationFramePolicyNotCompatible",PreloadingDisabled:"PreloadingDisabled",BatterySaverEnabled:"BatterySaverEnabled",ActivatedDuringMainFrameNavigation:"ActivatedDuringMainFrameNavigation",PreloadingUnsupportedByWebContents:"PreloadingUnsupportedByWebContents",CrossSiteRedirectInMainFrameNavigation:"CrossSiteRedirectInMainFrameNavigation",CrossSiteNavigationInMainFrameNavigation:"CrossSiteNavigationInMainFrameNavigation",SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation:"SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation",SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation:"SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation",MemoryPressureOnTrigger:"MemoryPressureOnTrigger",MemoryPressureAfterTriggered:"MemoryPressureAfterTriggered",PrerenderingDisabledByDevTools:"PrerenderingDisabledByDevTools",ResourceLoadBlockedByClient:"ResourceLoadBlockedByClient"}),e.registerEnum("Preload.PreloadingStatus",{Pending:"Pending",Running:"Running",Ready:"Ready",Success:"Success",Failure:"Failure",NotSupported:"NotSupported"}),e.registerEnum("Preload.PrefetchStatus",{PrefetchAllowed:"PrefetchAllowed",PrefetchFailedIneligibleRedirect:"PrefetchFailedIneligibleRedirect",PrefetchFailedInvalidRedirect:"PrefetchFailedInvalidRedirect",PrefetchFailedMIMENotSupported:"PrefetchFailedMIMENotSupported",PrefetchFailedNetError:"PrefetchFailedNetError",PrefetchFailedNon2XX:"PrefetchFailedNon2XX",PrefetchFailedPerPageLimitExceeded:"PrefetchFailedPerPageLimitExceeded",PrefetchEvicted:"PrefetchEvicted",PrefetchHeldback:"PrefetchHeldback",PrefetchIneligibleRetryAfter:"PrefetchIneligibleRetryAfter",PrefetchIsPrivacyDecoy:"PrefetchIsPrivacyDecoy",PrefetchIsStale:"PrefetchIsStale",PrefetchNotEligibleBrowserContextOffTheRecord:"PrefetchNotEligibleBrowserContextOffTheRecord",PrefetchNotEligibleDataSaverEnabled:"PrefetchNotEligibleDataSaverEnabled",PrefetchNotEligibleExistingProxy:"PrefetchNotEligibleExistingProxy",PrefetchNotEligibleHostIsNonUnique:"PrefetchNotEligibleHostIsNonUnique",PrefetchNotEligibleNonDefaultStoragePartition:"PrefetchNotEligibleNonDefaultStoragePartition",PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy:"PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy",PrefetchNotEligibleSchemeIsNotHttps:"PrefetchNotEligibleSchemeIsNotHttps",PrefetchNotEligibleUserHasCookies:"PrefetchNotEligibleUserHasCookies",PrefetchNotEligibleUserHasServiceWorker:"PrefetchNotEligibleUserHasServiceWorker",PrefetchNotEligibleBatterySaverEnabled:"PrefetchNotEligibleBatterySaverEnabled",PrefetchNotEligiblePreloadingDisabled:"PrefetchNotEligiblePreloadingDisabled",PrefetchNotFinishedInTime:"PrefetchNotFinishedInTime",PrefetchNotStarted:"PrefetchNotStarted",PrefetchNotUsedCookiesChanged:"PrefetchNotUsedCookiesChanged",PrefetchProxyNotAvailable:"PrefetchProxyNotAvailable",PrefetchResponseUsed:"PrefetchResponseUsed",PrefetchSuccessfulButNotUsed:"PrefetchSuccessfulButNotUsed",PrefetchNotUsedProbeFailed:"PrefetchNotUsedProbeFailed"}),e.registerEvent("Preload.ruleSetUpdated",["ruleSet"]),e.registerEvent("Preload.ruleSetRemoved",["id"]);e.registerEvent("Preload.prerenderAttemptCompleted",["key","initiatingFrameId","prerenderingUrl","finalStatus","disallowedApiMethod"]),e.registerEvent("Preload.preloadEnabledStateUpdated",["disabledByPreference","disabledByDataSaver","disabledByBatterySaver"]),e.registerEvent("Preload.prefetchStatusUpdated",["key","initiatingFrameId","prefetchUrl","status","prefetchStatus"]),e.registerEvent("Preload.prerenderStatusUpdated",["key","status","prerenderStatus"]),e.registerEvent("Preload.preloadingAttemptSourcesUpdated",["loaderId","preloadingAttemptSources"]),e.registerCommand("Preload.enable",[],[]),e.registerCommand("Preload.disable",[],[]),e.registerEnum("FedCm.LoginState",{SignIn:"SignIn",SignUp:"SignUp"}),e.registerEnum("FedCm.DialogType",{AccountChooser:"AccountChooser",AutoReauthn:"AutoReauthn"}),e.registerEvent("FedCm.dialogShown",["dialogId","dialogType","accounts","title","subtitle"]),e.registerCommand("FedCm.enable",[{name:"disableRejectionDelay",type:"boolean",optional:!0}],[]),e.registerCommand("FedCm.disable",[],[]),e.registerCommand("FedCm.selectAccount",[{name:"dialogId",type:"string",optional:!1},{name:"accountIndex",type:"number",optional:!1}],[]),e.registerCommand("FedCm.dismissDialog",[{name:"dialogId",type:"string",optional:!1},{name:"triggerCooldown",type:"boolean",optional:!0}],[]),e.registerCommand("FedCm.resetCooldown",[],[]),e.registerEnum("Debugger.ScopeType",{Global:"global",Local:"local",With:"with",Closure:"closure",Catch:"catch",Block:"block",Script:"script",Eval:"eval",Module:"module",WasmExpressionStack:"wasm-expression-stack"}),e.registerEnum("Debugger.BreakLocationType",{DebuggerStatement:"debuggerStatement",Call:"call",Return:"return"}),e.registerEnum("Debugger.ScriptLanguage",{JavaScript:"JavaScript",WebAssembly:"WebAssembly"}),e.registerEnum("Debugger.DebugSymbolsType",{None:"None",SourceMap:"SourceMap",EmbeddedDWARF:"EmbeddedDWARF",ExternalDWARF:"ExternalDWARF"}),e.registerEvent("Debugger.breakpointResolved",["breakpointId","location"]),e.registerEnum("Debugger.PausedEventReason",{Ambiguous:"ambiguous",Assert:"assert",CSPViolation:"CSPViolation",DebugCommand:"debugCommand",DOM:"DOM",EventListener:"EventListener",Exception:"exception",Instrumentation:"instrumentation",OOM:"OOM",Other:"other",PromiseRejection:"promiseRejection",XHR:"XHR",Step:"step"}),e.registerEvent("Debugger.paused",["callFrames","reason","data","hitBreakpoints","asyncStackTrace","asyncStackTraceId","asyncCallStackTraceId"]),e.registerEvent("Debugger.resumed",[]),e.registerEvent("Debugger.scriptFailedToParse",["scriptId","url","startLine","startColumn","endLine","endColumn","executionContextId","hash","executionContextAuxData","sourceMapURL","hasSourceURL","isModule","length","stackTrace","codeOffset","scriptLanguage","embedderName"]),e.registerEvent("Debugger.scriptParsed",["scriptId","url","startLine","startColumn","endLine","endColumn","executionContextId","hash","executionContextAuxData","isLiveEdit","sourceMapURL","hasSourceURL","isModule","length","stackTrace","codeOffset","scriptLanguage","debugSymbols","embedderName"]),e.registerEnum("Debugger.ContinueToLocationRequestTargetCallFrames",{Any:"any",Current:"current"}),e.registerCommand("Debugger.continueToLocation",[{name:"location",type:"object",optional:!1},{name:"targetCallFrames",type:"string",optional:!0}],[]),e.registerCommand("Debugger.disable",[],[]),e.registerCommand("Debugger.enable",[{name:"maxScriptsCacheSize",type:"number",optional:!0}],["debuggerId"]),e.registerCommand("Debugger.evaluateOnCallFrame",[{name:"callFrameId",type:"string",optional:!1},{name:"expression",type:"string",optional:!1},{name:"objectGroup",type:"string",optional:!0},{name:"includeCommandLineAPI",type:"boolean",optional:!0},{name:"silent",type:"boolean",optional:!0},{name:"returnByValue",type:"boolean",optional:!0},{name:"generatePreview",type:"boolean",optional:!0},{name:"throwOnSideEffect",type:"boolean",optional:!0},{name:"timeout",type:"number",optional:!0}],["result","exceptionDetails"]),e.registerCommand("Debugger.getPossibleBreakpoints",[{name:"start",type:"object",optional:!1},{name:"end",type:"object",optional:!0},{name:"restrictToFunction",type:"boolean",optional:!0}],["locations"]),e.registerCommand("Debugger.getScriptSource",[{name:"scriptId",type:"string",optional:!1}],["scriptSource","bytecode"]),e.registerCommand("Debugger.disassembleWasmModule",[{name:"scriptId",type:"string",optional:!1}],["streamId","totalNumberOfLines","functionBodyOffsets","chunk"]),e.registerCommand("Debugger.nextWasmDisassemblyChunk",[{name:"streamId",type:"string",optional:!1}],["chunk"]),e.registerCommand("Debugger.getWasmBytecode",[{name:"scriptId",type:"string",optional:!1}],["bytecode"]),e.registerCommand("Debugger.getStackTrace",[{name:"stackTraceId",type:"object",optional:!1}],["stackTrace"]),e.registerCommand("Debugger.pause",[],[]),e.registerCommand("Debugger.pauseOnAsyncCall",[{name:"parentStackTraceId",type:"object",optional:!1}],[]),e.registerCommand("Debugger.removeBreakpoint",[{name:"breakpointId",type:"string",optional:!1}],[]),e.registerEnum("Debugger.RestartFrameRequestMode",{StepInto:"StepInto"}),e.registerCommand("Debugger.restartFrame",[{name:"callFrameId",type:"string",optional:!1},{name:"mode",type:"string",optional:!0}],["callFrames","asyncStackTrace","asyncStackTraceId"]),e.registerCommand("Debugger.resume",[{name:"terminateOnResume",type:"boolean",optional:!0}],[]),e.registerCommand("Debugger.searchInContent",[{name:"scriptId",type:"string",optional:!1},{name:"query",type:"string",optional:!1},{name:"caseSensitive",type:"boolean",optional:!0},{name:"isRegex",type:"boolean",optional:!0}],["result"]),e.registerCommand("Debugger.setAsyncCallStackDepth",[{name:"maxDepth",type:"number",optional:!1}],[]),e.registerCommand("Debugger.setBlackboxPatterns",[{name:"patterns",type:"object",optional:!1}],[]),e.registerCommand("Debugger.setBlackboxedRanges",[{name:"scriptId",type:"string",optional:!1},{name:"positions",type:"object",optional:!1}],[]),e.registerCommand("Debugger.setBreakpoint",[{name:"location",type:"object",optional:!1},{name:"condition",type:"string",optional:!0}],["breakpointId","actualLocation"]),e.registerEnum("Debugger.SetInstrumentationBreakpointRequestInstrumentation",{BeforeScriptExecution:"beforeScriptExecution",BeforeScriptWithSourceMapExecution:"beforeScriptWithSourceMapExecution"}),e.registerCommand("Debugger.setInstrumentationBreakpoint",[{name:"instrumentation",type:"string",optional:!1}],["breakpointId"]),e.registerCommand("Debugger.setBreakpointByUrl",[{name:"lineNumber",type:"number",optional:!1},{name:"url",type:"string",optional:!0},{name:"urlRegex",type:"string",optional:!0},{name:"scriptHash",type:"string",optional:!0},{name:"columnNumber",type:"number",optional:!0},{name:"condition",type:"string",optional:!0}],["breakpointId","locations"]),e.registerCommand("Debugger.setBreakpointOnFunctionCall",[{name:"objectId",type:"string",optional:!1},{name:"condition",type:"string",optional:!0}],["breakpointId"]),e.registerCommand("Debugger.setBreakpointsActive",[{name:"active",type:"boolean",optional:!1}],[]),e.registerEnum("Debugger.SetPauseOnExceptionsRequestState",{None:"none",Caught:"caught",Uncaught:"uncaught",All:"all"}),e.registerCommand("Debugger.setPauseOnExceptions",[{name:"state",type:"string",optional:!1}],[]),e.registerCommand("Debugger.setReturnValue",[{name:"newValue",type:"object",optional:!1}],[]),e.registerCommand("Debugger.setScriptSource",[{name:"scriptId",type:"string",optional:!1},{name:"scriptSource",type:"string",optional:!1},{name:"dryRun",type:"boolean",optional:!0},{name:"allowTopFrameEditing",type:"boolean",optional:!0}],["callFrames","stackChanged","asyncStackTrace","asyncStackTraceId","status","exceptionDetails"]),e.registerCommand("Debugger.setSkipAllPauses",[{name:"skip",type:"boolean",optional:!1}],[]),e.registerCommand("Debugger.setVariableValue",[{name:"scopeNumber",type:"number",optional:!1},{name:"variableName",type:"string",optional:!1},{name:"newValue",type:"object",optional:!1},{name:"callFrameId",type:"string",optional:!1}],[]),e.registerCommand("Debugger.stepInto",[{name:"breakOnAsyncCall",type:"boolean",optional:!0},{name:"skipList",type:"object",optional:!0}],[]),e.registerCommand("Debugger.stepOut",[],[]),e.registerCommand("Debugger.stepOver",[{name:"skipList",type:"object",optional:!0}],[]),e.registerEvent("HeapProfiler.addHeapSnapshotChunk",["chunk"]),e.registerEvent("HeapProfiler.heapStatsUpdate",["statsUpdate"]),e.registerEvent("HeapProfiler.lastSeenObjectId",["lastSeenObjectId","timestamp"]),e.registerEvent("HeapProfiler.reportHeapSnapshotProgress",["done","total","finished"]),e.registerEvent("HeapProfiler.resetProfiles",[]),e.registerCommand("HeapProfiler.addInspectedHeapObject",[{name:"heapObjectId",type:"string",optional:!1}],[]),e.registerCommand("HeapProfiler.collectGarbage",[],[]),e.registerCommand("HeapProfiler.disable",[],[]),e.registerCommand("HeapProfiler.enable",[],[]),e.registerCommand("HeapProfiler.getHeapObjectId",[{name:"objectId",type:"string",optional:!1}],["heapSnapshotObjectId"]),e.registerCommand("HeapProfiler.getObjectByHeapObjectId",[{name:"objectId",type:"string",optional:!1},{name:"objectGroup",type:"string",optional:!0}],["result"]),e.registerCommand("HeapProfiler.getSamplingProfile",[],["profile"]),e.registerCommand("HeapProfiler.startSampling",[{name:"samplingInterval",type:"number",optional:!0},{name:"includeObjectsCollectedByMajorGC",type:"boolean",optional:!0},{name:"includeObjectsCollectedByMinorGC",type:"boolean",optional:!0}],[]),e.registerCommand("HeapProfiler.startTrackingHeapObjects",[{name:"trackAllocations",type:"boolean",optional:!0}],[]),e.registerCommand("HeapProfiler.stopSampling",[],["profile"]),e.registerCommand("HeapProfiler.stopTrackingHeapObjects",[{name:"reportProgress",type:"boolean",optional:!0},{name:"treatGlobalObjectsAsRoots",type:"boolean",optional:!0},{name:"captureNumericValue",type:"boolean",optional:!0},{name:"exposeInternals",type:"boolean",optional:!0}],[]),e.registerCommand("HeapProfiler.takeHeapSnapshot",[{name:"reportProgress",type:"boolean",optional:!0},{name:"treatGlobalObjectsAsRoots",type:"boolean",optional:!0},{name:"captureNumericValue",type:"boolean",optional:!0},{name:"exposeInternals",type:"boolean",optional:!0}],[]),e.registerEvent("Profiler.consoleProfileFinished",["id","location","profile","title"]),e.registerEvent("Profiler.consoleProfileStarted",["id","location","title"]),e.registerEvent("Profiler.preciseCoverageDeltaUpdate",["timestamp","occasion","result"]),e.registerCommand("Profiler.disable",[],[]),e.registerCommand("Profiler.enable",[],[]),e.registerCommand("Profiler.getBestEffortCoverage",[],["result"]),e.registerCommand("Profiler.setSamplingInterval",[{name:"interval",type:"number",optional:!1}],[]),e.registerCommand("Profiler.start",[],[]),e.registerCommand("Profiler.startPreciseCoverage",[{name:"callCount",type:"boolean",optional:!0},{name:"detailed",type:"boolean",optional:!0},{name:"allowTriggeredUpdates",type:"boolean",optional:!0}],["timestamp"]),e.registerCommand("Profiler.stop",[],["profile"]),e.registerCommand("Profiler.stopPreciseCoverage",[],[]),e.registerCommand("Profiler.takePreciseCoverage",[],["result","timestamp"]),e.registerEnum("Runtime.SerializationOptionsSerialization",{Deep:"deep",Json:"json",IdOnly:"idOnly"}),e.registerEnum("Runtime.DeepSerializedValueType",{Undefined:"undefined",Null:"null",String:"string",Number:"number",Boolean:"boolean",Bigint:"bigint",Regexp:"regexp",Date:"date",Symbol:"symbol",Array:"array",Object:"object",Function:"function",Map:"map",Set:"set",Weakmap:"weakmap",Weakset:"weakset",Error:"error",Proxy:"proxy",Promise:"promise",Typedarray:"typedarray",Arraybuffer:"arraybuffer",Node:"node",Window:"window"}),e.registerEnum("Runtime.RemoteObjectType",{Object:"object",Function:"function",Undefined:"undefined",String:"string",Number:"number",Boolean:"boolean",Symbol:"symbol",Bigint:"bigint"}),e.registerEnum("Runtime.RemoteObjectSubtype",{Array:"array",Null:"null",Node:"node",Regexp:"regexp",Date:"date",Map:"map",Set:"set",Weakmap:"weakmap",Weakset:"weakset",Iterator:"iterator",Generator:"generator",Error:"error",Proxy:"proxy",Promise:"promise",Typedarray:"typedarray",Arraybuffer:"arraybuffer",Dataview:"dataview",Webassemblymemory:"webassemblymemory",Wasmvalue:"wasmvalue"}),e.registerEnum("Runtime.ObjectPreviewType",{Object:"object",Function:"function",Undefined:"undefined",String:"string",Number:"number",Boolean:"boolean",Symbol:"symbol",Bigint:"bigint"}),e.registerEnum("Runtime.ObjectPreviewSubtype",{Array:"array",Null:"null",Node:"node",Regexp:"regexp",Date:"date",Map:"map",Set:"set",Weakmap:"weakmap",Weakset:"weakset",Iterator:"iterator",Generator:"generator",Error:"error",Proxy:"proxy",Promise:"promise",Typedarray:"typedarray",Arraybuffer:"arraybuffer",Dataview:"dataview",Webassemblymemory:"webassemblymemory",Wasmvalue:"wasmvalue"}),e.registerEnum("Runtime.PropertyPreviewType",{Object:"object",Function:"function",Undefined:"undefined",String:"string",Number:"number",Boolean:"boolean",Symbol:"symbol",Accessor:"accessor",Bigint:"bigint"}),e.registerEnum("Runtime.PropertyPreviewSubtype",{Array:"array",Null:"null",Node:"node",Regexp:"regexp",Date:"date",Map:"map",Set:"set",Weakmap:"weakmap",Weakset:"weakset",Iterator:"iterator",Generator:"generator",Error:"error",Proxy:"proxy",Promise:"promise",Typedarray:"typedarray",Arraybuffer:"arraybuffer",Dataview:"dataview",Webassemblymemory:"webassemblymemory",Wasmvalue:"wasmvalue"}),e.registerEvent("Runtime.bindingCalled",["name","payload","executionContextId"]),e.registerEnum("Runtime.ConsoleAPICalledEventType",{Log:"log",Debug:"debug",Info:"info",Error:"error",Warning:"warning",Dir:"dir",DirXML:"dirxml",Table:"table",Trace:"trace",Clear:"clear",StartGroup:"startGroup",StartGroupCollapsed:"startGroupCollapsed",EndGroup:"endGroup",Assert:"assert",Profile:"profile",ProfileEnd:"profileEnd",Count:"count",TimeEnd:"timeEnd"}),e.registerEvent("Runtime.consoleAPICalled",["type","args","executionContextId","timestamp","stackTrace","context"]),e.registerEvent("Runtime.exceptionRevoked",["reason","exceptionId"]),e.registerEvent("Runtime.exceptionThrown",["timestamp","exceptionDetails"]),e.registerEvent("Runtime.executionContextCreated",["context"]),e.registerEvent("Runtime.executionContextDestroyed",["executionContextId","executionContextUniqueId"]),e.registerEvent("Runtime.executionContextsCleared",[]),e.registerEvent("Runtime.inspectRequested",["object","hints","executionContextId"]),e.registerCommand("Runtime.awaitPromise",[{name:"promiseObjectId",type:"string",optional:!1},{name:"returnByValue",type:"boolean",optional:!0},{name:"generatePreview",type:"boolean",optional:!0}],["result","exceptionDetails"]),e.registerCommand("Runtime.callFunctionOn",[{name:"functionDeclaration",type:"string",optional:!1},{name:"objectId",type:"string",optional:!0},{name:"arguments",type:"object",optional:!0},{name:"silent",type:"boolean",optional:!0},{name:"returnByValue",type:"boolean",optional:!0},{name:"generatePreview",type:"boolean",optional:!0},{name:"userGesture",type:"boolean",optional:!0},{name:"awaitPromise",type:"boolean",optional:!0},{name:"executionContextId",type:"number",optional:!0},{name:"objectGroup",type:"string",optional:!0},{name:"throwOnSideEffect",type:"boolean",optional:!0},{name:"uniqueContextId",type:"string",optional:!0},{name:"generateWebDriverValue",type:"boolean",optional:!0},{name:"serializationOptions",type:"object",optional:!0}],["result","exceptionDetails"]),e.registerCommand("Runtime.compileScript",[{name:"expression",type:"string",optional:!1},{name:"sourceURL",type:"string",optional:!1},{name:"persistScript",type:"boolean",optional:!1},{name:"executionContextId",type:"number",optional:!0}],["scriptId","exceptionDetails"]),e.registerCommand("Runtime.disable",[],[]),e.registerCommand("Runtime.discardConsoleEntries",[],[]),e.registerCommand("Runtime.enable",[],[]),e.registerCommand("Runtime.evaluate",[{name:"expression",type:"string",optional:!1},{name:"objectGroup",type:"string",optional:!0},{name:"includeCommandLineAPI",type:"boolean",optional:!0},{name:"silent",type:"boolean",optional:!0},{name:"contextId",type:"number",optional:!0},{name:"returnByValue",type:"boolean",optional:!0},{name:"generatePreview",type:"boolean",optional:!0},{name:"userGesture",type:"boolean",optional:!0},{name:"awaitPromise",type:"boolean",optional:!0},{name:"throwOnSideEffect",type:"boolean",optional:!0},{name:"timeout",type:"number",optional:!0},{name:"disableBreaks",type:"boolean",optional:!0},{name:"replMode",type:"boolean",optional:!0},{name:"allowUnsafeEvalBlockedByCSP",type:"boolean",optional:!0},{name:"uniqueContextId",type:"string",optional:!0},{name:"generateWebDriverValue",type:"boolean",optional:!0},{name:"serializationOptions",type:"object",optional:!0}],["result","exceptionDetails"]),e.registerCommand("Runtime.getIsolateId",[],["id"]),e.registerCommand("Runtime.getHeapUsage",[],["usedSize","totalSize"]),e.registerCommand("Runtime.getProperties",[{name:"objectId",type:"string",optional:!1},{name:"ownProperties",type:"boolean",optional:!0},{name:"accessorPropertiesOnly",type:"boolean",optional:!0},{name:"generatePreview",type:"boolean",optional:!0},{name:"nonIndexedPropertiesOnly",type:"boolean",optional:!0}],["result","internalProperties","privateProperties","exceptionDetails"]),e.registerCommand("Runtime.globalLexicalScopeNames",[{name:"executionContextId",type:"number",optional:!0}],["names"]),e.registerCommand("Runtime.queryObjects",[{name:"prototypeObjectId",type:"string",optional:!1},{name:"objectGroup",type:"string",optional:!0}],["objects"]),e.registerCommand("Runtime.releaseObject",[{name:"objectId",type:"string",optional:!1}],[]),e.registerCommand("Runtime.releaseObjectGroup",[{name:"objectGroup",type:"string",optional:!1}],[]),e.registerCommand("Runtime.runIfWaitingForDebugger",[],[]),e.registerCommand("Runtime.runScript",[{name:"scriptId",type:"string",optional:!1},{name:"executionContextId",type:"number",optional:!0},{name:"objectGroup",type:"string",optional:!0},{name:"silent",type:"boolean",optional:!0},{name:"includeCommandLineAPI",type:"boolean",optional:!0},{name:"returnByValue",type:"boolean",optional:!0},{name:"generatePreview",type:"boolean",optional:!0},{name:"awaitPromise",type:"boolean",optional:!0}],["result","exceptionDetails"]),e.registerCommand("Runtime.setAsyncCallStackDepth",[{name:"maxDepth",type:"number",optional:!1}],[]),e.registerCommand("Runtime.setCustomObjectFormatterEnabled",[{name:"enabled",type:"boolean",optional:!1}],[]),e.registerCommand("Runtime.setMaxCallStackSizeToCapture",[{name:"size",type:"number",optional:!1}],[]),e.registerCommand("Runtime.terminateExecution",[],[]),e.registerCommand("Runtime.addBinding",[{name:"name",type:"string",optional:!1},{name:"executionContextId",type:"number",optional:!0},{name:"executionContextName",type:"string",optional:!0}],[]),e.registerCommand("Runtime.removeBinding",[{name:"name",type:"string",optional:!1}],[]),e.registerCommand("Runtime.getExceptionDetails",[{name:"errorObjectId",type:"string",optional:!1}],["exceptionDetails"]),e.registerCommand("Schema.getDomains",[],["domains"])}(c);export{u as InspectorBackend,n as NodeURL};
